diff options
author | Benety Goh <benety@mongodb.com> | 2020-01-18 07:24:00 -0500 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-01-27 15:40:41 -0500 |
commit | 45138cfc322f1e4466d17d4faee50d6cd37411da (patch) | |
tree | 0890755f2550d924a7ad2d27f9c5972c3aa43244 | |
parent | cfde5ef0adebbd59f2105fb2182b7d2f151526a4 (diff) | |
download | mongo-45138cfc322f1e4466d17d4faee50d6cd37411da.tar.gz |
SERVER-43988 IndexBuildsCoordinator::forEachIndexBuild() logs index build method
-rw-r--r-- | src/mongo/db/index_builds_coordinator.cpp | 5 |
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); } |