summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_build_entry_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_build_entry_helpers.cpp')
-rw-r--r--src/mongo/db/index_build_entry_helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_build_entry_helpers.cpp b/src/mongo/db/index_build_entry_helpers.cpp
index 95cfcb7c6c5..f537d445003 100644
--- a/src/mongo/db/index_build_entry_helpers.cpp
+++ b/src/mongo/db/index_build_entry_helpers.cpp
@@ -256,7 +256,7 @@ StatusWith<IndexBuildEntry> getIndexBuildEntry(OperationContext* opCtx, UUID ind
// Read the most up to date data.
ReadSourceScope readSourceScope(opCtx, RecoveryUnit::ReadSource::kNoTimestamp);
AutoGetCollectionForRead autoCollection(opCtx, NamespaceString::kIndexBuildEntryNamespace);
- Collection* collection = autoCollection.getCollection();
+ const Collection* collection = autoCollection.getCollection();
// Must not be interruptible. This fail point is used to test the scenario where the index
// build's OperationContext is interrupted by an abort, which will subsequently remove index