summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2020-01-24 20:16:47 +0000
committerevergreen <evergreen@mongodb.com>2020-01-24 20:16:47 +0000
commit3c77b4ab9e633b3e36688ef1866c29380d9267eb (patch)
tree8c9184cfd0e6e18ce583dd56c7afeffdb1f0f866
parentcb499afd9f818a9fa0b33bb27810d65483c11700 (diff)
downloadmongo-3c77b4ab9e633b3e36688ef1866c29380d9267eb.tar.gz
SERVER-45762 Take collection lock before calling CollectionShardingRuntime::setFilteringMetadata in range_deletion_util_test.cpp
-rw-r--r--src/mongo/db/s/range_deletion_util_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/s/range_deletion_util_test.cpp b/src/mongo/db/s/range_deletion_util_test.cpp
index f66d983a26e..b9572dad76b 100644
--- a/src/mongo/db/s/range_deletion_util_test.cpp
+++ b/src/mongo/db/s/range_deletion_util_test.cpp
@@ -101,6 +101,7 @@ public:
std::shared_ptr<ChunkManager> cm = std::make_shared<ChunkManager>(rt, boost::none);
+ Lock::CollectionLock collLock(operationContext(), kNss, MODE_IX);
CollectionShardingRuntime::get(operationContext(), kNss)
->setFilteringMetadata(operationContext(),
CollectionMetadata(cm, ShardId("dummyShardId")));