summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_util_test.cpp
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2022-10-26 07:48:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-26 08:42:45 +0000
commit1ddc20571ad31d622045d80049c4e7879a780a14 (patch)
treed59c11cbcb41d0c961311b7e317478a42936c280 /src/mongo/db/s/migration_util_test.cpp
parentc554c500fde9838b0125d4965b758a4b0b9af158 (diff)
downloadmongo-1ddc20571ad31d622045d80049c4e7879a780a14.tar.gz
SERVER-69435 Make the CSS acquisition a RAII
Diffstat (limited to 'src/mongo/db/s/migration_util_test.cpp')
-rw-r--r--src/mongo/db/s/migration_util_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/migration_util_test.cpp b/src/mongo/db/s/migration_util_test.cpp
index d023db60ab1..317992375d2 100644
--- a/src/mongo/db/s/migration_util_test.cpp
+++ b/src/mongo/db/s/migration_util_test.cpp
@@ -629,7 +629,7 @@ TEST_F(
_mockCatalogClient->setCollections({coll});
auto metadata = makeShardedMetadata(opCtx, collectionUUID);
- csr().setFilteringMetadata(opCtx, metadata);
+ csr()->setFilteringMetadata(opCtx, metadata);
// The task should have been submitted successfully.
auto cleanupCompleteFuture = migrationutil::submitRangeDeletionTask(opCtx, deletionTask);
@@ -665,7 +665,7 @@ TEST_F(SubmitRangeDeletionTaskTest,
_mockCatalogClient->setCollections({matchingColl});
auto metadata = makeShardedMetadata(opCtx, collectionUUID);
- csr().setFilteringMetadata(opCtx, metadata);
+ csr()->setFilteringMetadata(opCtx, metadata);
// The task should have been submitted successfully.
auto cleanupCompleteFuture = migrationutil::submitRangeDeletionTask(opCtx, deletionTask);