diff options
author | Benety Goh <benety@mongodb.com> | 2019-01-31 19:43:19 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2019-01-31 19:43:34 -0500 |
commit | 066d681d4c0377da30aa0fc262826d67e9b1ad69 (patch) | |
tree | 32b7374588544d04332fea07d4cd17a4a65f0dd2 /src/mongo/db/repl_index_build_state.h | |
parent | 9606de0f0f3166b9c8fcff033f2476af2937f685 (diff) | |
download | mongo-066d681d4c0377da30aa0fc262826d67e9b1ad69.tar.gz |
SERVER-37643 update IndexBuildsCoordinator and IndexBuildsManager interfaces.
rename IndexBuildsCoordinator::buildIndex() to startIndexBuild()
add ReplIndexBuildState::dbName and use in IndexBuildsCoordinator registration
add IndexBuildsManager::isBackgroundBuilding()
remove unused IndexBuildsManager::finishConstraintPhase()
add IndexBuildsManager::drainBackgroundWrites()
remove nss argument from IndexBuildsManager::setUpIndexBuild()
Diffstat (limited to 'src/mongo/db/repl_index_build_state.h')
-rw-r--r-- | src/mongo/db/repl_index_build_state.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl_index_build_state.h b/src/mongo/db/repl_index_build_state.h index aa7ddd26830..57f4a4c1d92 100644 --- a/src/mongo/db/repl_index_build_state.h +++ b/src/mongo/db/repl_index_build_state.h @@ -55,10 +55,12 @@ namespace mongo { struct ReplIndexBuildState { ReplIndexBuildState(const UUID& indexBuildUUID, const UUID& collUUID, + const std::string& dbName, const std::vector<std::string> names, const std::vector<BSONObj>& specs) : buildUUID(indexBuildUUID), collectionUUID(collUUID), + dbName(dbName), indexNames(names), indexSpecs(specs) { // Verify that the given index names and index specs match. @@ -76,6 +78,10 @@ struct ReplIndexBuildState { // the collection UUID is used to maintain correct association. const UUID collectionUUID; + // Identifies the database containing the index being built. Unlike collections, databases + // cannot be renamed. + const std::string dbName; + // The names of the indexes being built. const std::vector<std::string> indexNames; |