summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.cpp b/src/mongo/db/index_builds_coordinator.cpp
index 38b1da5703f..4961d533f68 100644
--- a/src/mongo/db/index_builds_coordinator.cpp
+++ b/src/mongo/db/index_builds_coordinator.cpp
@@ -2632,7 +2632,12 @@ void IndexBuildsCoordinator::_cleanUpAfterFailure(OperationContext* opCtx,
if (status.code() == ErrorCodes::DataCorruptionDetected) {
indexBuildsSSS.failedDueToDataCorruption.addAndFetch(1);
- LOGV2(7333600, "Index build: data corruption detected", "status"_attr = status);
+ LOGV2(7333600,
+ "Index build: data corruption detected",
+ "buildUUID"_attr = replState->buildUUID,
+ logAttrs(replState->dbName),
+ "collectionUUID"_attr = replState->collectionUUID,
+ "error"_attr = status);
}
if (IndexBuildProtocol::kSinglePhase == replState->protocol) {