summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/count_cmd.cpp
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-03-11 21:01:23 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-12 01:40:48 +0000
commit6bed923a9301663072619d006ef1932e379ad311 (patch)
tree594e9e817152cc53cf65ddce14f6345b77924438 /src/mongo/db/commands/count_cmd.cpp
parent339fe2c4fda1d54912f6d175caee4d8c3c801b71 (diff)
downloadmongo-6bed923a9301663072619d006ef1932e379ad311.tar.gz
Revert "SERVER-46583 Make count command use OwnershipFilter instead of CollectionDescription"
This reverts commit e4a9c689d31e49dc9c5bd0755e390518b6a2f416.
Diffstat (limited to 'src/mongo/db/commands/count_cmd.cpp')
-rw-r--r--src/mongo/db/commands/count_cmd.cpp4
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 300214ad28a..82e85ef808f 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)->getOwnershipFilter(opCtx);
+ auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getCollectionDescription();
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)->getOwnershipFilter(opCtx);
+ auto rangePreserver = CollectionShardingState::get(opCtx, nss)->getCollectionDescription();
auto statusWithPlanExecutor =
getExecutorCount(makeExpressionContextForGetExecutor(