diff options
author | Benety Goh <benety@mongodb.com> | 2019-07-19 14:24:23 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2019-07-19 14:24:55 -0400 |
commit | ca03514b54e97e6b66e5344a35be3e003d4e9fc8 (patch) | |
tree | 929c92afb37a47f4aed6a47e1d1279fddf013ad4 /src/mongo/db/index_builds_coordinator_mongod.cpp | |
parent | d69f63be5b41b5fb26abb54f8dd60c850b70072e (diff) | |
download | mongo-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_mongod.cpp')
-rw-r--r-- | src/mongo/db/index_builds_coordinator_mongod.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp index a0e20599e65..3e5a8e9937c 100644 --- a/src/mongo/db/index_builds_coordinator_mongod.cpp +++ b/src/mongo/db/index_builds_coordinator_mongod.cpp @@ -89,13 +89,14 @@ void IndexBuildsCoordinatorMongod::shutdown() { StatusWith<SharedSemiFuture<ReplIndexBuildState::IndexCatalogStats>> IndexBuildsCoordinatorMongod::startIndexBuild(OperationContext* opCtx, + StringData dbName, CollectionUUID collectionUUID, const std::vector<BSONObj>& specs, const UUID& buildUUID, IndexBuildProtocol protocol, IndexBuildOptions indexBuildOptions) { auto statusWithOptionalResult = _registerAndSetUpIndexBuild( - opCtx, collectionUUID, specs, buildUUID, protocol, indexBuildOptions.commitQuorum); + opCtx, dbName, collectionUUID, specs, buildUUID, protocol, indexBuildOptions.commitQuorum); if (!statusWithOptionalResult.isOK()) { return statusWithOptionalResult.getStatus(); } |