summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-01-18 07:24:00 -0500
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2020-01-27 15:40:41 -0500
commit45138cfc322f1e4466d17d4faee50d6cd37411da (patch)
tree0890755f2550d924a7ad2d27f9c5972c3aa43244
parentcfde5ef0adebbd59f2105fb2182b7d2f151526a4 (diff)
downloadmongo-45138cfc322f1e4466d17d4faee50d6cd37411da.tar.gz
SERVER-43988 IndexBuildsCoordinator::forEachIndexBuild() logs index build method
-rw-r--r--src/mongo/db/index_builds_coordinator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp
index 18ccf79077d..eda59265217 100644
--- a/src/mongo/db/index_builds_coordinator.cpp
+++ b/src/mongo/db/index_builds_coordinator.cpp
@@ -272,7 +272,10 @@ void forEachIndexBuild(
std::string indexNamesStr;
str::joinStringDelim(replState->indexNames, &indexNamesStr, ',');
log() << logPrefix << replState->buildUUID << ": collection: " << replState->collectionUUID
- << "; indexes: " << replState->indexNames.size() << " [" << indexNamesStr << "]";
+ << "; indexes: " << replState->indexNames.size() << " [" << indexNamesStr
+ << "]; method: "
+ << (IndexBuildProtocol::kTwoPhase == replState->protocol ? "two phase"
+ : "single phase");
onIndexBuild(replState);
}