summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/create_collection_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/create_collection_test.cpp')
-rw-r--r--src/mongo/db/catalog/create_collection_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/create_collection_test.cpp b/src/mongo/db/catalog/create_collection_test.cpp
index cef79c84a45..7f16293665f 100644
--- a/src/mongo/db/catalog/create_collection_test.cpp
+++ b/src/mongo/db/catalog/create_collection_test.cpp
@@ -284,8 +284,7 @@ TEST_F(CreateCollectionTest, ValidationDisabledForTemporaryReshardingCollection)
ASSERT_OK(createCollection(opCtx.get(), reshardingNss.db().toString(), createCmdObj));
ASSERT_TRUE(collectionExists(opCtx.get(), reshardingNss));
- AutoGetCollection agc(opCtx.get(), reshardingNss, MODE_X);
- Collection* collection = agc.getCollection();
+ AutoGetCollection collection(opCtx.get(), reshardingNss, MODE_X);
WriteUnitOfWork wuow(opCtx.get());
// Ensure a document that violates validator criteria can be inserted into the temporary