summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index a6ba88502bc..8d96d926e95 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -528,7 +528,7 @@ Status StorageInterfaceImpl::setIndexIsMultikey(OperationContext* opCtx,
<< nss.ns()
<< " to set to multikey.");
}
- collection->getIndexCatalog()->getIndex(idx)->setIndexIsMultikey(opCtx, paths);
+ collection->getIndexCatalog()->setMultikeyPaths(opCtx, idx, paths);
wunit.commit();
return Status::OK();
});
@@ -609,7 +609,7 @@ StatusWith<std::vector<BSONObj>> _findOrDeleteDocuments(
auto indexCatalog = collection->getIndexCatalog();
invariant(indexCatalog);
bool includeUnfinishedIndexes = false;
- IndexDescriptor* indexDescriptor =
+ const IndexDescriptor* indexDescriptor =
indexCatalog->findIndexByName(opCtx, *indexName, includeUnfinishedIndexes);
if (!indexDescriptor) {
return Result(ErrorCodes::IndexNotFound,