summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbhash.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2020-05-11 19:47:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-13 19:19:45 +0000
commit2e46c85d9e90da3bcedd2463a7f6ffb8af0e1c24 (patch)
treeeaed849524c4bbf725392ea440b2d47139e507df /src/mongo/db/commands/dbhash.cpp
parent29b8db71476ea59991c452ddd14db03e48ad47bc (diff)
downloadmongo-2e46c85d9e90da3bcedd2463a7f6ffb8af0e1c24.tar.gz
SERVER-48084 Lint log lines in mongo/db/commands
Diffstat (limited to 'src/mongo/db/commands/dbhash.cpp')
-rw-r--r--src/mongo/db/commands/dbhash.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/commands/dbhash.cpp b/src/mongo/db/commands/dbhash.cpp
index 42dcfe2feb4..2d686835f81 100644
--- a/src/mongo/db/commands/dbhash.cpp
+++ b/src/mongo/db/commands/dbhash.cpp
@@ -350,7 +350,10 @@ private:
exec = InternalPlanner::collectionScan(
opCtx, nss.ns(), collection, PlanExecutor::NO_YIELD);
} else {
- LOGV2(20455, "can't find _id index for: {nss}", "nss"_attr = nss);
+ LOGV2(20455,
+ "Can't find _id index for namespace: {namespace}",
+ "Can't find _id index for namespace",
+ "namespace"_attr = nss);
return "no _id _index";
}
@@ -366,7 +369,8 @@ private:
n++;
}
if (PlanExecutor::IS_EOF != state) {
- LOGV2_WARNING(20456, "error while hashing, db dropped? ns={nss}", "nss"_attr = nss);
+ LOGV2_WARNING(
+ 20456, "Error while hashing, db possibly dropped", "namespace"_attr = nss);
uasserted(34371,
"Plan executor error while running dbHash command: " +
WorkingSetCommon::toStatusString(c));