1
0
Fork 0

fix valgrind issues (#5283)

This commit is contained in:
Andrey Abramov 2018-05-07 21:17:48 +03:00 committed by GitHub
parent 6db3258505
commit 39a4cbf0d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -3876,14 +3876,20 @@ class RestrictToSingleShardChecker final : public WalkerWorker<ExecutionNode> {
break;
}
case EN::ENUMERATE_COLLECTION:
case EN::UPSERT: {
case EN::ENUMERATE_COLLECTION: {
// track usage of the collection
auto collection = static_cast<EnumerateCollectionNode const*>(en)->collection();
_shardsUsed[collection].emplace("all");
break;
}
case EN::UPSERT: {
// track usage of the collection
auto collection = static_cast<ModificationNode const*>(en)->collection();
_shardsUsed[collection].emplace("all");
break;
}
case EN::INSERT:
case EN::REPLACE:
case EN::UPDATE: