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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h
index 1f01a38b06b..425c511a1c2 100644
--- a/src/mongo/db/index_builds_coordinator.h
+++ b/src/mongo/db/index_builds_coordinator.h
@@ -276,6 +276,16 @@ public:
void abortAllIndexBuildsForInitialSync(OperationContext* opCtx, const std::string& reason);
/**
+ * Signals all index builds on non-internal databases to abort and waits until they are no
+ * longer running.
+ *
+ * Does not require holding locks.
+ *
+ * Does not stop new index builds from starting. Caller must make that guarantee.
+ */
+ void abortUserIndexBuildsForUserWriteBlocking(OperationContext* opCtx);
+
+ /**
* 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 aborted.