summaryrefslogtreecommitdiff
path: root/src/mongo/db/system_index.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-07-19 14:24:23 -0400
committerBenety Goh <benety@mongodb.com>2019-07-19 14:24:55 -0400
commitca03514b54e97e6b66e5344a35be3e003d4e9fc8 (patch)
tree929c92afb37a47f4aed6a47e1d1279fddf013ad4 /src/mongo/db/system_index.cpp
parentd69f63be5b41b5fb26abb54f8dd60c850b70072e (diff)
downloadmongo-ca03514b54e97e6b66e5344a35be3e003d4e9fc8.tar.gz
SERVER-42280 add db name argument to IndexBuildsCoordinator::startIndexBuild() and _registerAndSetUpIndexBuild()
This sets ReplIndexBuildState::dbName using the db name provided to startIndexBuild() rather than deriving from the CollectionCatalog lookup result.
Diffstat (limited to 'src/mongo/db/system_index.cpp')
-rw-r--r--src/mongo/db/system_index.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/system_index.cpp b/src/mongo/db/system_index.cpp
index a09cc9c64dc..e0e475b2230 100644
--- a/src/mongo/db/system_index.cpp
+++ b/src/mongo/db/system_index.cpp
@@ -126,6 +126,7 @@ SharedSemiFuture<ReplIndexBuildState::IndexCatalogStats> generateSystemIndexForE
IndexBuildsCoordinator::IndexBuildOptions indexBuildOptions = {CommitQuorumOptions(1)};
auto indexBuildFuture =
uassertStatusOK(indexBuildsCoord->startIndexBuild(opCtx,
+ ns.db(),
collectionUUID,
{indexSpec},
buildUUID,