summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.h
diff options
context:
space:
mode:
authorJinny Byun <jinny@MacBook-Pro-88.local>2018-06-05 13:28:10 -0400
committerjinichu <jinnybyun@gmail.com>2018-06-06 14:45:20 -0400
commit0875709a13cc60c99a612228a0822d768e9aa5e6 (patch)
treede46d2f1ba902e88e16b347f625440c4dc435bda /src/mongo/db/session.h
parent558a8edc943709177d4a41c172515ebc3f7300ed (diff)
downloadmongo-0875709a13cc60c99a612228a0822d768e9aa5e6.tar.gz
SERVER-35126 Created new struct TxnStats under Session
Diffstat (limited to 'src/mongo/db/session.h')
-rw-r--r--src/mongo/db/session.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index 98268060b82..793d5dec814 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -1,4 +1,4 @@
-/**
+/*
* Copyright (C) 2017 MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
@@ -40,6 +40,7 @@
#include "mongo/db/repl/read_concern_args.h"
#include "mongo/db/session_txn_record_gen.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"
@@ -528,6 +529,9 @@ private:
// This member is only applicable to operations running in a transaction. It is reset when a
// transaction state resets.
std::vector<MultikeyPathInfo> _multikeyPathInfo;
+
+ // Tracks per-transaction metrics.
+ TxnStats _txnStats;
};
} // namespace mongo