8000 Reduce memory usage of Merkle trees by jsteemann · Pull Request #14549 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content
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
Next Next commit
remove unused bool parameter
  • Loading branch information
jsteemann committed Jul 27, 2021
commit ff972ea16853b73358d1be5486f2ba6e403c4b6f
9 changes: 2 additions & 7 deletions arangod/RocksDBEngine/RocksDBV8Functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,6 @@ static void JS_CollectionRevisionTreeVerification(v8::FunctionCallbackInfo<v8::V
TRI_V8_THROW_EXCEPTION_INTERNAL("cannot extract collection");
}

bool onlyPopulated = false;
if (args.Length() > 0) {
onlyPopulated = TRI_ObjectToBoolean(isolate, args[0]);
}

std::unique_ptr<containers::RevisionTree> storedTree;
std::unique_ptr<containers::RevisionTree> computedTree;

Expand Down Expand Up @@ -272,13 +267,13 @@ static void JS_CollectionRevisionTreeVerification(v8::FunctionCallbackInfo<v8::V
VPackObjectBuilder guard(&builder);
if (storedTree != nullptr) {
builder.add(VPackValue("stored"));
storedTree->serialize(builder, onlyPopulated);
storedTree->serialize(builder, /*onlyPopulated*/ false);
} else {
builder.add("stored", VPackValue(false));
}
if (computedTree != nullptr) {
builder.add(VPackValue("computed"));
computedTree->serialize(builder, onlyPopulated);
computedTree->serialize(builder, /*onlyPopulated*/ false);
} else {
builder.add("computed", VPackValue(false));
}
Expand Down
0