summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database_and_check_version.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2020-04-22 08:33:42 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-22 20:28:50 +0000
commit0f3ea400ef047d93a46bc353ba7b89b1ed7cfc92 (patch)
treec1bfe3a8b53432efc1303aea2a9ecca9da8382cc /src/mongo/db/repair_database_and_check_version.cpp
parent47bdd45ded2b9c16a88877c161023c3364099196 (diff)
downloadmongo-0f3ea400ef047d93a46bc353ba7b89b1ed7cfc92.tar.gz
SERVER-47397 enhanced logging for Execution owned files (part 2)
Diffstat (limited to 'src/mongo/db/repair_database_and_check_version.cpp')
-rw-r--r--src/mongo/db/repair_database_and_check_version.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/db/repair_database_and_check_version.cpp b/src/mongo/db/repair_database_and_check_version.cpp
index f87afde7e16..bc0d4e2a4ac 100644
--- a/src/mongo/db/repair_database_and_check_version.cpp
+++ b/src/mongo/db/repair_database_and_check_version.cpp
@@ -312,8 +312,9 @@ void rebuildIndexes(OperationContext* opCtx, StorageEngine* storageEngine) {
for (const auto& indexName : entry.second.first) {
LOGV2(21004,
"Rebuilding index. Collection: {collNss} Index: {indexName}",
- "collNss"_attr = collNss,
- "indexName"_attr = indexName);
+ "Rebuilding index",
+ "namespace"_attr = collNss,
+ "index"_attr = indexName);
}
std::vector<BSONObj> indexSpecs = entry.second.second;
@@ -461,12 +462,10 @@ bool repairDatabasesAndCheckVersion(OperationContext* opCtx) {
auto repairObserver = StorageRepairObserver::get(opCtx->getServiceContext());
repairObserver->onRepairDone(opCtx);
if (repairObserver->getModifications().size() > 0) {
- LOGV2_WARNING(21018, "Modifications made by repair:");
const auto& mods = repairObserver->getModifications();
for (const auto& mod : mods) {
- LOGV2_WARNING(21019,
- " {mod_getDescription}",
- "mod_getDescription"_attr = mod.getDescription());
+ LOGV2_WARNING(
+ 21019, "repairModification", "description"_attr = mod.getDescription());
}
}
if (repairObserver->isDataInvalidated()) {