summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-08-11 10:14:22 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-11 14:40:32 +0000
commitbc2128c87dca30c758b87cc7bfcdfd6ab04e8e8d (patch)
tree97c296e99272cc494d61540ef7e954e23889d884 /src/mongo/db/index_builds_coordinator.cpp
parentcf8949deb58129f7d01084ef6f01c495a70da94c (diff)
downloadmongo-bc2128c87dca30c758b87cc7bfcdfd6ab04e8e8d.tar.gz
SERVER-50028 remove unnecessary collection catalog lookup from IndexBuildsManager::startBuildingIndexForRecovery()
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp
index 3f2bdd7f2b9..1d4ab20c6ec 100644
--- a/src/mongo/db/index_builds_coordinator.cpp
+++ b/src/mongo/db/index_builds_coordinator.cpp
@@ -2698,7 +2698,7 @@ StatusWith<std::pair<long long, long long>> IndexBuildsCoordinator::_runIndexReb
std::tie(numRecords, dataSize) =
uassertStatusOK(_indexBuildsManager.startBuildingIndexForRecovery(
- opCtx, collection->ns(), buildUUID, repair));
+ opCtx, collection, buildUUID, repair));
// Since we are holding an exclusive collection lock to stop new writes, do not yield locks
// while draining.