summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern_mongod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/read_concern_mongod.cpp')
-rw-r--r--src/mongo/db/read_concern_mongod.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/read_concern_mongod.cpp b/src/mongo/db/read_concern_mongod.cpp
index b5b50da9c48..d0831db0c41 100644
--- a/src/mongo/db/read_concern_mongod.cpp
+++ b/src/mongo/db/read_concern_mongod.cpp
@@ -27,7 +27,7 @@
* it in the license file.
*/
-#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand
#include "mongo/base/shim.h"
#include "mongo/base/status.h"
@@ -389,7 +389,7 @@ Status waitForReadConcernImpl(OperationContext* opCtx,
LOGV2_DEBUG(
20991,
- logSeverityV1toV2(debugLevel).toInt(),
+ debugLevel,
"Waiting for 'committed' snapshot to be available for reading: {readConcernArgs}",
"readConcernArgs"_attr = readConcernArgs);
@@ -398,8 +398,7 @@ Status waitForReadConcernImpl(OperationContext* opCtx,
// Wait until a snapshot is available.
while (status == ErrorCodes::ReadConcernMajorityNotAvailableYet) {
- LOGV2_DEBUG(
- 20992, logSeverityV1toV2(debugLevel).toInt(), "Snapshot not available yet.");
+ LOGV2_DEBUG(20992, debugLevel, "Snapshot not available yet.");
replCoord->waitUntilSnapshotCommitted(opCtx, Timestamp());
status = opCtx->recoveryUnit()->obtainMajorityCommittedSnapshot();
}
@@ -409,7 +408,7 @@ Status waitForReadConcernImpl(OperationContext* opCtx,
}
LOGV2_DEBUG(20993,
- logSeverityV1toV2(debugLevel).toInt(),
+ debugLevel,
"Using 'committed' snapshot: {CurOp_get_opCtx_opDescription} with readTs: "
"{opCtx_recoveryUnit_getPointInTimeReadTimestamp}",
"CurOp_get_opCtx_opDescription"_attr = CurOp::get(opCtx)->opDescription(),