diff options
author | Randolph Tan <randolph@10gen.com> | 2017-10-11 13:32:15 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-10-25 01:20:09 -0400 |
commit | 67f735e6705091659e2a8cf46a9285f09bcf749a (patch) | |
tree | ffcaa27ecec2babe0c2dba0452a6866a5a3ed9f3 /src/mongo/db/logical_session_id.h | |
parent | 5b9b9a9f04b06109b77b5522f7318c366deecf6f (diff) | |
download | mongo-67f735e6705091659e2a8cf46a9285f09bcf749a.tar.gz |
SERVER-30880 Handle migration of sessions with incomplete history
Diffstat (limited to 'src/mongo/db/logical_session_id.h')
-rw-r--r-- | src/mongo/db/logical_session_id.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_id.h b/src/mongo/db/logical_session_id.h index 24629bdd050..a769c19d0f9 100644 --- a/src/mongo/db/logical_session_id.h +++ b/src/mongo/db/logical_session_id.h @@ -40,7 +40,12 @@ namespace mongo { using TxnNumber = std::int64_t; using StmtId = std::int32_t; +// Default value for unassigned statementId. const StmtId kUninitializedStmtId = -1; + +// Used as a substitute statementId for oplog entries that were truncated and lost. +const StmtId kIncompleteHistoryStmtId = -2; + const TxnNumber kUninitializedTxnNumber = -1; class BSONObjBuilder; |