diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-03-21 17:00:09 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-03-24 17:11:54 -0400 |
commit | 85126f13b5b26700cb9dc869df3ad747515e6a25 (patch) | |
tree | ce150ada40a6a52f712fd4681aac2c35ffb69427 /src/mongo/db/index_builds_coordinator.h | |
parent | 10f196bb962c6d4f983b9d7b1209aff26f97573a (diff) | |
download | mongo-85126f13b5b26700cb9dc869df3ad747515e6a25.tar.gz |
SERVER-39079 Move BackgroundOperation checks out of the catalog layer; add parallel IndexBuildsCoordinator checks for all BackgroundOperation checks
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.h')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.h | 12 |
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. |