diff options
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.h')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h index 65e5f71db42..e79bc10eb36 100644 --- a/src/mongo/db/index_builds_coordinator.h +++ b/src/mongo/db/index_builds_coordinator.h @@ -232,6 +232,17 @@ public: const std::string& reason); /** + * Signals all of the index builds to abort and then waits until the index builds are no longer + * running. The provided 'reason' will be used in the error message that the index builders + * return to their callers. + * + * Does not require holding locks. + * + * Does not stop new index builds from starting. Caller must make that guarantee. + */ + void abortAllIndexBuildsForInitialSync(OperationContext* opCtx, const std::string& reason); + + /** * Aborts an index build by index build UUID. Returns when the index build thread exits. * * Returns true if the index build was aborted or the index build is already in the process of |