summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_build_entry_helpers_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_build_entry_helpers_test.cpp')
-rw-r--r--src/mongo/db/index_build_entry_helpers_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/index_build_entry_helpers_test.cpp b/src/mongo/db/index_build_entry_helpers_test.cpp
index e44e7b780dd..f8563c66feb 100644
--- a/src/mongo/db/index_build_entry_helpers_test.cpp
+++ b/src/mongo/db/index_build_entry_helpers_test.cpp
@@ -38,6 +38,7 @@
#include "mongo/db/catalog/catalog_test_fixture.h"
#include "mongo/db/catalog/commit_quorum_options.h"
#include "mongo/db/catalog/index_build_entry_gen.h"
+#include "mongo/db/catalog_raii.h"
#include "mongo/db/client.h"
#include "mongo/db/index_build_entry_helpers.h"
#include "mongo/db/service_context.h"
@@ -90,7 +91,8 @@ void checkIfEqual(IndexBuildEntry lhs, IndexBuildEntry rhs) {
}
Status removeIndexBuildEntry(OperationContext* opCtx, UUID indexBuildUUID) {
- return indexbuildentryhelpers::removeIndexBuildEntry(opCtx, {}, indexBuildUUID);
+ AutoGetCollection autoColl(opCtx, NamespaceString::kIndexBuildEntryNamespace, MODE_IX);
+ return indexbuildentryhelpers::removeIndexBuildEntry(opCtx, *autoColl, indexBuildUUID);
}
class IndexBuildEntryHelpersTest : public CatalogTestFixture {