summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.h')
-rw-r--r--src/mongo/db/index_builds_coordinator.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h
index 6ed20f5c3b8..d49178017da 100644
--- a/src/mongo/db/index_builds_coordinator.h
+++ b/src/mongo/db/index_builds_coordinator.h
@@ -263,6 +263,11 @@ public:
bool inProgForDb(StringData db) const;
/**
+ * Uasserts if any index builds are in progress on any database.
+ */
+ void assertNoIndexBuildInProgress() const;
+
+ /**
* Uasserts if any index builds is in progress on the specified collection.
*/
void assertNoIndexBuildInProgForCollection(const UUID& collectionUUID) const;
@@ -274,13 +279,8 @@ public:
/**
* Waits for all index builds on a specified collection to finish.
- *
- * Momentarily takes the collection IS lock for 'ns', to fetch the collection UUID.
*/
- void awaitNoBgOpInProgForNs(OperationContext* opCtx, StringData ns) const;
- void awaitNoBgOpInProgForNs(OperationContext* opCtx, const NamespaceString& ns) const {
- awaitNoBgOpInProgForNs(opCtx, ns.ns());
- }
+ void awaitNoIndexBuildInProgressForCollection(const UUID& collectionUUID) const;
/**
* Waits for all index builds on a specified database to finish.