diff options
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 5cdb28929ed..72454cd9420 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -960,7 +960,7 @@ string OpDebug::report(OperationContext* opCtx, const SingleThreadedLockStats* l } } - if (writeConcern && !writeConcern->usedDefault) { + if (writeConcern && !writeConcern->usedDefaultConstructedWC) { s << " writeConcern:" << writeConcern->toBSON(); } @@ -1143,7 +1143,7 @@ void OpDebug::report(OperationContext* opCtx, } } - if (writeConcern && !writeConcern->usedDefault) { + if (writeConcern && !writeConcern->usedDefaultConstructedWC) { pAttrs->add("writeConcern", writeConcern->toBSON()); } @@ -1280,7 +1280,7 @@ void OpDebug::append(OperationContext* opCtx, } } - if (writeConcern && !writeConcern->usedDefault) { + if (writeConcern && !writeConcern->usedDefaultConstructedWC) { b.append("writeConcern", writeConcern->toBSON()); } @@ -1542,7 +1542,7 @@ std::function<BSONObj(ProfileFilter::Args)> OpDebug::appendStaged(StringSet requ }); addIfNeeded("writeConcern", [](auto field, auto args, auto& b) { - if (args.op.writeConcern && !args.op.writeConcern->usedDefault) { + if (args.op.writeConcern && !args.op.writeConcern->usedDefaultConstructedWC) { b.append(field, args.op.writeConcern->toBSON()); } }); |