summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl_index_build_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl_index_build_state.h')
-rw-r--r--src/mongo/db/repl_index_build_state.h6
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;