diff options
Diffstat (limited to 'src/mongo/db/repl_index_build_state.h')
-rw-r--r-- | src/mongo/db/repl_index_build_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl_index_build_state.h b/src/mongo/db/repl_index_build_state.h index 6777b1078fd..9bac45a6edc 100644 --- a/src/mongo/db/repl_index_build_state.h +++ b/src/mongo/db/repl_index_build_state.h @@ -343,6 +343,13 @@ public: boost::optional<IndexBuildAction> getNextActionNoWait() const; /** + * Called when we are trying to add a new index build 'other' that conflicts with this one. + * Returns a status that reflects whether this index build has been aborted or still active. + */ + Status onConflictWithNewIndexBuild(const ReplIndexBuildState& otherIndexBuild, + const std::string& otherIndexName) const; + + /** * Accessor and mutator for last optime in the oplog before the interceptors were installed. * This supports resumable index builds. */ |