summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/index_consistency.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/index_consistency.cpp')
-rw-r--r--src/mongo/db/catalog/index_consistency.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/index_consistency.cpp b/src/mongo/db/catalog/index_consistency.cpp
index c5c0a2d1ce7..141a54cf00b 100644
--- a/src/mongo/db/catalog/index_consistency.cpp
+++ b/src/mongo/db/catalog/index_consistency.cpp
@@ -348,6 +348,9 @@ void IndexConsistency::addDocKey(OperationContext* opCtx,
invariant(_missingIndexEntries.count(key) == 0);
_missingIndexEntries.insert(
std::make_pair(key, IndexEntryInfo(*indexInfo, recordId, idKeyBuilder.obj(), ks)));
+
+ // Prints the collection document's metadata.
+ _validateState->getCollection()->getRecordStore()->printRecordMetadata(opCtx, recordId);
}
}
@@ -419,6 +422,10 @@ void IndexConsistency::addIndexKey(OperationContext* opCtx,
if (search == _extraIndexEntries.end()) {
SimpleBSONObjSet infoSet = {info};
_extraIndexEntries.insert(std::make_pair(key, infoSet));
+
+ // Prints the collection document's metadata.
+ _validateState->getCollection()->getRecordStore()->printRecordMetadata(opCtx,
+ recordId);
return;
}
search->second.insert(info);