diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2020-02-13 20:40:09 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-14 15:44:44 +0000 |
commit | 304143ac82ee910df84c58a62f3f18137290ca82 (patch) | |
tree | f31a241cea79a49aedf956bb2f28929253dc9fd6 /src/mongo/db/transaction_participant.h | |
parent | efa43f5170ab702319128770b0347df0bb2bd8b8 (diff) | |
download | mongo-304143ac82ee910df84c58a62f3f18137290ca82.tar.gz |
SERVER-45822 Manually convert slow query and slow query-like logs
create mode 100644 jstests/libs/logv2_helpers.js
Diffstat (limited to 'src/mongo/db/transaction_participant.h')
-rw-r--r-- | src/mongo/db/transaction_participant.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/transaction_participant.h b/src/mongo/db/transaction_participant.h index 1317807cca6..8bcf69a1f4b 100644 --- a/src/mongo/db/transaction_participant.h +++ b/src/mongo/db/transaction_participant.h @@ -52,6 +52,7 @@ #include "mongo/db/storage/storage_engine.h" #include "mongo/db/transaction_metrics_observer.h" #include "mongo/idl/mutable_observer_registry.h" +#include "mongo/logv2/attribute_storage.h" #include "mongo/stdx/unordered_map.h" #include "mongo/util/assert_util.h" #include "mongo/util/concurrency/with_lock.h" @@ -699,6 +700,12 @@ public: TerminationCause terminationCause, repl::ReadConcernArgs readConcernArgs) const; + void _transactionInfoForLog(OperationContext* opCtx, + const SingleThreadedLockStats* lockStats, + TerminationCause terminationCause, + repl::ReadConcernArgs readConcernArgs, + logv2::DynamicAttributes* pAttrs) const; + // Bumps up the transaction number of this transaction and perform the necessary cleanup. void _setNewTxnNumber(OperationContext* opCtx, const TxnNumber& txnNumber); |