diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-03-24 17:41:29 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-27 04:45:53 +0000 |
commit | 019afd89c77629a3cabf93803314dd77f451276b (patch) | |
tree | 216608c9dc19c2d31707fd99153fae1f64040feb /src/mongo/db/operation_context.cpp | |
parent | 0ebbedb45382c922d4873c2689d67fd80a735e5c (diff) | |
download | mongo-019afd89c77629a3cabf93803314dd77f451276b.tar.gz |
SERVER-47077 Clean up log lines in 'mongo/db'
Cleaning up log lines to adhere to the LOGV2 style guide.
Diffstat (limited to 'src/mongo/db/operation_context.cpp')
-rw-r--r-- | src/mongo/db/operation_context.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/operation_context.cpp b/src/mongo/db/operation_context.cpp index a0bee37b49b..3553a4f0f64 100644 --- a/src/mongo/db/operation_context.cpp +++ b/src/mongo/db/operation_context.cpp @@ -230,9 +230,7 @@ Status OperationContext::checkForInterruptNoAssert() noexcept { checkForInterruptFail.executeIf( [&](auto&&) { - LOGV2(20882, - "set pending kill on op {getOpID}, for checkForInterruptFail", - "getOpID"_attr = getOpID()); + LOGV2(20882, "Marking operation as killed for failpoint", "opId"_attr = getOpID()); markKilled(); }, [&](auto&& data) { return opShouldFail(getClient(), data); }); @@ -333,7 +331,7 @@ void OperationContext::markKilled(ErrorCodes::Error killCode) { invariant(!ErrorExtraInfo::parserFor(killCode)); if (killCode == ErrorCodes::ClientDisconnect) { - LOGV2(20883, "operation was interrupted because a client disconnected"); + LOGV2(20883, "Interrupted operation as its client disconnected", "opId"_attr = getOpID()); } if (auto status = ErrorCodes::OK; _killCode.compareAndSwap(&status, killCode)) { |