summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl_test.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl_test.cpp b/src/mongo/db/repl/storage_interface_impl_test.cpp
index 9656b154a88..9a121099170 100644
--- a/src/mongo/db/repl/storage_interface_impl_test.cpp
+++ b/src/mongo/db/repl/storage_interface_impl_test.cpp
@@ -2654,9 +2654,9 @@ TEST_F(StorageInterfaceImplTest, SetIndexIsMultikeySucceeds) {
AutoGetCollectionForReadCommand autoColl(opCtx, nss);
ASSERT_TRUE(autoColl.getCollection());
auto indexCatalog = autoColl.getCollection()->getIndexCatalog();
- ASSERT(indexCatalog->isMultikey(indexCatalog->findIndexByName(opCtx, indexName)));
- ASSERT(paths ==
- indexCatalog->getMultikeyPaths(opCtx, indexCatalog->findIndexByName(opCtx, indexName)));
+ auto entry = indexCatalog->findIndexByName(opCtx, indexName)->getEntry();
+ ASSERT(entry->isMultikey());
+ ASSERT(paths == entry->getMultikeyPaths(opCtx));
}
} // namespace