8000 Fix Pregel Graph Loading Logic by graetzer · Pull Request #6419 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Fix Pregel Graph Loading Logic #6419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
use SIZE_MAX
  • Loading branch information
graetzer committed Sep 6, 2018
commit d65135bb89d98bd2d9f5e253be5e2bb4f492ebab
4 changes: 2 additions & 2 deletions arangod/Pregel/GraphStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ std::map<CollectionID, std::vector<VertexShardInfo>>
_config->vertexCollectionShards();
std::map<CollectionID, std::vector<ShardID>> const& edgeCollMap =
_config->edgeCollectionShards();
size_t numShards = SIZE_T_MAX;
size_t numShards = SIZE_MAX;

// Allocating some memory
uint64_t vCount = 0;
uint64_t eCount = 0;
for (auto const& pair : vertexCollMap) {
std::vector<ShardID> const& vertexShards = pair.second;
if (numShards == SIZE_T_MAX) {
if (numShards == SIZE_MAX) {
numShards = vertexShards.size();
} else if (numShards != vertexShards.size()) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, shardError);
Expand Down
0