summaryrefslogtreecommitdiff
path: root/src/mongo/db/session_catalog.h
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2022-01-14 19:38:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-14 21:42:58 +0000
commit29ef581da2924a81963c563c0f96edd5e56ca9c7 (patch)
treee25723f3eff63fa8b8b6b170ea34e9a810ae10d8 /src/mongo/db/session_catalog.h
parentda1a24bd16ce627122def05de91856ea8686b64a (diff)
downloadmongo-29ef581da2924a81963c563c0f96edd5e56ca9c7.tar.gz
SERVER-62020 Make retryable write statements executed with or without internal transactions retryable whether or not internal transactions are involved on retries
Diffstat (limited to 'src/mongo/db/session_catalog.h')
-rw-r--r--src/mongo/db/session_catalog.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/session_catalog.h b/src/mongo/db/session_catalog.h
index 7bed6ae91a3..eb838038d8d 100644
--- a/src/mongo/db/session_catalog.h
+++ b/src/mongo/db/session_catalog.h
@@ -116,6 +116,11 @@ public:
*/
size_t size() const;
+ /**
+ * Creates the session runtime info for 'lsid' if it doesn't exist.
+ */
+ void createSessionIfDoesNotExist(const LogicalSessionId& lsid);
+
private:
struct SessionRuntimeInfo {
SessionRuntimeInfo(LogicalSessionId lsid) : session(std::move(lsid)) {}