summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_metadata_util.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2020-03-18 17:40:13 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-23 22:34:38 +0000
commit2debd8d3f087a50c3c7ec6d3d99ba6b056a24eab (patch)
tree50e10550a5ad53b5117e68c2260588161dd1fb10 /src/mongo/db/s/shard_metadata_util.cpp
parent65f447b27e9b3db0315dd52d97d9e26fa462916c (diff)
downloadmongo-2debd8d3f087a50c3c7ec6d3d99ba6b056a24eab.tar.gz
SERVER-46799 Update sharding log lines to adhere to LOGV2 style guide
Diffstat (limited to 'src/mongo/db/s/shard_metadata_util.cpp')
-rw-r--r--src/mongo/db/s/shard_metadata_util.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/mongo/db/s/shard_metadata_util.cpp b/src/mongo/db/s/shard_metadata_util.cpp
index 7cbc8d6e59d..652a48cdd38 100644
--- a/src/mongo/db/s/shard_metadata_util.cpp
+++ b/src/mongo/db/s/shard_metadata_util.cpp
@@ -425,10 +425,13 @@ Status dropChunksAndDeleteCollectionsEntry(OperationContext* opCtx, const Namesp
}
}
- LOGV2_DEBUG(22090,
- 1,
- "Successfully cleared persisted chunk metadata for collection '{nss}'.",
- "nss"_attr = nss);
+ LOGV2_DEBUG(
+ 22090,
+ 1,
+ "Successfully cleared persisted chunk metadata and collection entry for collection "
+ "{namespace}",
+ "Successfully cleared persisted chunk metadata and collection entry",
+ "namespace"_attr = nss);
return Status::OK();
} catch (const DBException& ex) {
return ex.toStatus();
@@ -449,8 +452,8 @@ void dropChunks(OperationContext* opCtx, const NamespaceString& nss) {
LOGV2_DEBUG(22091,
1,
- "Successfully cleared persisted chunk metadata for collection '{nss}'.",
- "nss"_attr = nss);
+ "Successfully cleared persisted chunk metadata for collection",
+ "namespace"_attr = nss);
}
Status deleteDatabasesEntry(OperationContext* opCtx, StringData dbName) {
@@ -472,8 +475,9 @@ Status deleteDatabasesEntry(OperationContext* opCtx, StringData dbName) {
LOGV2_DEBUG(22092,
1,
- "Successfully cleared persisted metadata for db '{dbName}'.",
- "dbName"_attr = dbName.toString());
+ "Successfully cleared persisted metadata for db {db}",
+ "Successfully cleared persisted metadata for db",
+ "db"_attr = dbName);
return Status::OK();
} catch (const DBException& ex) {
return ex.toStatus();