summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_participant.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/transaction_participant.h')
-rw-r--r--src/mongo/db/transaction_participant.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/db/transaction_participant.h b/src/mongo/db/transaction_participant.h
index e778de94cd3..e7c69a69c76 100644
--- a/src/mongo/db/transaction_participant.h
+++ b/src/mongo/db/transaction_participant.h
@@ -280,12 +280,11 @@ public:
std::string transactionInfoForLogForTest(const SingleThreadedLockStats* lockStats,
bool committed,
- repl::ReadConcernArgs readConcernArgs,
- bool wasPrepared) {
+ repl::ReadConcernArgs readConcernArgs) {
stdx::lock_guard<stdx::mutex> lk(_mutex);
TransactionState::StateFlag terminationCause =
committed ? TransactionState::kCommitted : TransactionState::kAborted;
- return _transactionInfoForLog(lockStats, terminationCause, readConcernArgs, wasPrepared);
+ return _transactionInfoForLog(lockStats, terminationCause, readConcernArgs);
}
/**
@@ -695,8 +694,7 @@ private:
// passed in order for this method to be called.
std::string _transactionInfoForLog(const SingleThreadedLockStats* lockStats,
TransactionState::StateFlag terminationCause,
- repl::ReadConcernArgs readConcernArgs,
- bool wasPrepared);
+ repl::ReadConcernArgs readConcernArgs);
// Reports transaction stats for both active and inactive transactions using the provided
// builder. The lock may be either a lock on _mutex or a lock on _metricsMutex.