diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2020-03-03 13:52:06 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-11 15:23:46 +0000 |
commit | e4a9c689d31e49dc9c5bd0755e390518b6a2f416 (patch) | |
tree | 294d259412d1169e56042c21f9da678516272756 | |
parent | 38370edd76bd5e0fdd73c8efd503e7c17eb721f4 (diff) | |
download | mongo-e4a9c689d31e49dc9c5bd0755e390518b6a2f416.tar.gz |
SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription
-rw-r--r-- | src/mongo/db/commands/count_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/count_cmd.cpp b/src/mongo/db/commands/count_cmd.cpp index 82e85ef808f..300214ad28a 100644 --- a/src/mongo/db/commands/count_cmd.cpp +++ b/src/mongo/db/commands/count_cmd.cpp @@ -168,7 +168,7 @@ public: // Prevent chunks from being cleaned up during yields - this allows us to only check the // version on initial entry into count. - auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getCollectionDescription(); + auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getOwnershipFilter(opCtx); auto expCtx = makeExpressionContextForGetExecutor( opCtx, request.getCollation().value_or(BSONObj()), nss); @@ -228,7 +228,7 @@ public: // Prevent chunks from being cleaned up during yields - this allows us to only check the // version on initial entry into count. - auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getCollectionDescription(); + auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getOwnershipFilter(opCtx); auto statusWithPlanExecutor = getExecutorCount(makeExpressionContextForGetExecutor( |