summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_test_fixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_engine_test_fixture.h')
-rw-r--r--src/mongo/db/storage/storage_engine_test_fixture.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/storage/storage_engine_test_fixture.h b/src/mongo/db/storage/storage_engine_test_fixture.h
index 2cea5dce158..ffbb42ee70c 100644
--- a/src/mongo/db/storage/storage_engine_test_fixture.h
+++ b/src/mongo/db/storage/storage_engine_test_fixture.h
@@ -55,10 +55,10 @@ public:
AutoGetDb db(opCtx, ns.db(), LockMode::MODE_X);
CollectionOptions options;
options.uuid = UUID::gen();
- auto catalogEntry = unittest::assertGet(
+ auto rs = unittest::assertGet(
_storageEngine->getCatalog()->createCollection(opCtx, ns, options, true));
- CollectionCatalog::get(opCtx).registerCollection(
- options.uuid.get(), std::move(catalogEntry), std::make_unique<CollectionMock>(ns));
+ CollectionCatalog::get(opCtx).registerCollection(options.uuid.get(),
+ std::make_unique<CollectionMock>(ns));
return _storageEngine->getCatalog()->getCollectionIdent(ns);
}