diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2019-11-06 16:24:40 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-11-06 16:24:40 +0000 |
commit | 39c08aceaf7fa15a8e65cf80b09863b452425426 (patch) | |
tree | 7efc9eab66c71f8894c7ebf6dee8b0ee649dec18 /src/mongo/db/repl/rs_rollback_test.cpp | |
parent | 0ff5e5e7cc09c31d3fe260cf6602f461e6e20bb6 (diff) | |
download | mongo-39c08aceaf7fa15a8e65cf80b09863b452425426.tar.gz |
SERVER-44276: Change storage engine catalog map to be keyed by RecordId instead of Namespace.
Diffstat (limited to 'src/mongo/db/repl/rs_rollback_test.cpp')
-rw-r--r-- | src/mongo/db/repl/rs_rollback_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/repl/rs_rollback_test.cpp b/src/mongo/db/repl/rs_rollback_test.cpp index 337144013b0..9380cbe51ad 100644 --- a/src/mongo/db/repl/rs_rollback_test.cpp +++ b/src/mongo/db/repl/rs_rollback_test.cpp @@ -1061,7 +1061,7 @@ TEST_F(RSRollbackTest, RollbackRenameCollectionInSameDatabaseCommand) { // Remote collection options should have been empty. auto collAfterRollbackOptions = DurableCatalog::get(_opCtx.get()) - ->getCollectionOptions(_opCtx.get(), oldCollName.getCollection()->ns()); + ->getCollectionOptions(_opCtx.get(), oldCollName.getCollection()->getCatalogId()); ASSERT_BSONOBJ_EQ(BSON("uuid" << *options.uuid), collAfterRollbackOptions.toBSON()); } } @@ -1117,7 +1117,8 @@ TEST_F(RSRollbackTest, AutoGetCollectionForReadCommand autoColl(_opCtx.get(), NamespaceString(renameFromNss)); auto collAfterRollbackOptions = - DurableCatalog::get(_opCtx.get())->getCollectionOptions(_opCtx.get(), renameFromNss); + DurableCatalog::get(_opCtx.get()) + ->getCollectionOptions(_opCtx.get(), autoColl.getCollection()->getCatalogId()); ASSERT_TRUE(collAfterRollbackOptions.temp); ASSERT_BSONOBJ_EQ(BSON("uuid" << *options.uuid << "temp" << true), collAfterRollbackOptions.toBSON()); @@ -1712,7 +1713,7 @@ TEST_F(RSRollbackTest, RollbackCollectionModificationCommand) { AutoGetCollectionForReadCommand autoColl(_opCtx.get(), NamespaceString("test.t")); auto collAfterRollbackOptions = DurableCatalog::get(_opCtx.get()) - ->getCollectionOptions(_opCtx.get(), NamespaceString("test.t")); + ->getCollectionOptions(_opCtx.get(), autoColl.getCollection()->getCatalogId()); ASSERT_BSONOBJ_EQ(BSON("uuid" << *options.uuid), collAfterRollbackOptions.toBSON()); } |