summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.h
diff options
context:
space:
mode:
authorjinichu <jinnybyun@gmail.com>2018-06-08 12:56:17 -0400
committerjinichu <jinnybyun@gmail.com>2018-06-08 12:58:45 -0400
commitb0ba1c3935e4793edb32eece425fb5fb48892d1e (patch)
tree3e2622b12307635c45189deb345ad033e2ee591d /src/mongo/db/session.h
parent6ad26a359f7bc366da13d433ed612ff22f69d323 (diff)
downloadmongo-b0ba1c3935e4793edb32eece425fb5fb48892d1e.tar.gz
SERVER-35492 Renamed TxnStats class to SingleTransactionStats
Diffstat (limited to 'src/mongo/db/session.h')
-rw-r--r--src/mongo/db/session.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index c2d29abd55e..9ca248a2c08 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -39,8 +39,8 @@
#include "mongo/db/repl/oplog_entry.h"
#include "mongo/db/repl/read_concern_args.h"
#include "mongo/db/session_txn_record_gen.h"
+#include "mongo/db/single_transaction_stats.h"
#include "mongo/db/storage/recovery_unit.h"
-#include "mongo/db/txn_stats.h"
#include "mongo/platform/atomic_word.h"
#include "mongo/stdx/unordered_map.h"
#include "mongo/util/concurrency/with_lock.h"
@@ -550,8 +550,8 @@ private:
// transaction state resets.
std::vector<MultikeyPathInfo> _multikeyPathInfo;
- // Tracks per-transaction metrics.
- TxnStats _txnStats;
+ // Tracks metrics for a single multi-document transaction. Not used for retryable writes.
+ boost::optional<SingleTransactionStats> _singleTransactionStats;
};
} // namespace mongo