summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-02-26 15:39:55 +0000
committerevergreen <evergreen@mongodb.com>2020-02-26 15:39:55 +0000
commitce4f6d6f6e0be8478e1f2f6f728dcc89f4b1e271 (patch)
treeab403b1b448488a2e9881551fdae0eae4ad157da /src/mongo/db/repl/storage_interface_impl.cpp
parentdbc00195a18a3aecbcb7b254c3de2056fe25aa24 (diff)
downloadmongo-ce4f6d6f6e0be8478e1f2f6f728dcc89f4b1e271.tar.gz
SERVER-46074 Improve log attributes for repl directory and bridge.cpp
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index bbbf34c3cd2..f62634da128 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -192,8 +192,8 @@ StorageInterfaceImpl::createCollectionForBulkLoading(
LOGV2_DEBUG(21753,
2,
- "StorageInterfaceImpl::createCollectionForBulkLoading called for ns: {nss_ns}",
- "nss_ns"_attr = nss.ns());
+ "StorageInterfaceImpl::createCollectionForBulkLoading called for ns: {ns}",
+ "ns"_attr = nss.ns());
class StashClient {
public:
@@ -387,9 +387,7 @@ Status StorageInterfaceImpl::dropReplicatedDatabases(OperationContext* opCtx) {
std::vector<std::string> dbNames =
opCtx->getServiceContext()->getStorageEngine()->listDatabases();
invariant(!dbNames.empty());
- LOGV2(21754,
- "dropReplicatedDatabases - dropping {dbNames_size} databases",
- "dbNames_size"_attr = dbNames.size());
+ LOGV2(21754, "dropReplicatedDatabases - dropping {num} databases", "num"_attr = dbNames.size());
ReplicationCoordinator::get(opCtx)->dropAllSnapshots();
@@ -414,9 +412,7 @@ Status StorageInterfaceImpl::dropReplicatedDatabases(OperationContext* opCtx) {
});
}
invariant(hasLocalDatabase, "local database missing");
- LOGV2(21756,
- "dropReplicatedDatabases - dropped {dbNames_size} databases",
- "dbNames_size"_attr = dbNames.size());
+ LOGV2(21756, "dropReplicatedDatabases - dropped {num} databases", "num"_attr = dbNames.size());
return Status::OK();
}