summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.h
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/index_builds_coordinator.h
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/index_builds_coordinator.h')
-rw-r--r--src/mongo/db/index_builds_coordinator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h
index 2a502c5dfff..b7040be5ba0 100644
--- a/src/mongo/db/index_builds_coordinator.h
+++ b/src/mongo/db/index_builds_coordinator.h
@@ -111,6 +111,7 @@ public:
*/
virtual StatusWith<SharedSemiFuture<ReplIndexBuildState::IndexCatalogStats>> startIndexBuild(
OperationContext* opCtx,
+ StringData dbName,
CollectionUUID collectionUUID,
const std::vector<BSONObj>& specs,
const UUID& buildUUID,
@@ -338,6 +339,7 @@ protected:
*/
StatusWith<boost::optional<SharedSemiFuture<ReplIndexBuildState::IndexCatalogStats>>>
_registerAndSetUpIndexBuild(OperationContext* opCtx,
+ StringData dbName,
CollectionUUID collectionUUID,
const std::vector<BSONObj>& specs,
const UUID& buildUUID,