diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-02-05 10:38:51 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-02-11 22:33:22 -0500 |
commit | 8e76d8c9040aa15f3acbf56bda7e91cce3d37b5a (patch) | |
tree | d3995a21f0dff6ac59398e51740db470fd9038cc /src/mongo/db/repl_index_build_state.h | |
parent | d8cef1c71c1e9d8c59e354e08db121046af68c21 (diff) | |
download | mongo-8e76d8c9040aa15f3acbf56bda7e91cce3d37b5a.tar.gz |
SERVER-39368 refactor IndexBuildsCoordinator::_runIndexBuild to facilitate future changes and code re-use
Diffstat (limited to 'src/mongo/db/repl_index_build_state.h')
-rw-r--r-- | src/mongo/db/repl_index_build_state.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/repl_index_build_state.h b/src/mongo/db/repl_index_build_state.h index 7183a0c7c74..cdad50c0236 100644 --- a/src/mongo/db/repl_index_build_state.h +++ b/src/mongo/db/repl_index_build_state.h @@ -107,12 +107,16 @@ struct ReplIndexBuildState { // to commit the index(es). std::vector<HostAndPort> commitReadyMembers; - // Communicates the final outcome of the index build to any callers waiting upon the associated - // SharedSemiFuture(s). using IndexCatalogStats = struct { int numIndexesBefore = 0; int numIndexesAfter = 0; }; + + // Tracks the index build stats that are returned to the caller upon success. + IndexCatalogStats stats; + + // Communicates the final outcome of the index build to any callers waiting upon the associated + // SharedSemiFuture(s). SharedPromise<IndexCatalogStats> sharedPromise; // There is a period of time where the index build is registered on the coordinator, but an |