summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2017-07-17 16:54:00 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2017-07-24 11:22:04 -0400
commit3bc2d6c1c5782ab8456b40852930aef3e7e7f802 (patch)
tree36abd7bcbdb41e446b9a8baf3b7c650d51544876 /src/mongo/db/session.h
parentffe425ee16d9c597732350dfe6de73b2fd9305d0 (diff)
downloadmongo-3bc2d6c1c5782ab8456b40852930aef3e7e7f802.tar.gz
SERVER-28918 Make CRUD paths retryable
Diffstat (limited to 'src/mongo/db/session.h')
-rw-r--r--src/mongo/db/session.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index 6103b7fc769..f21309ffa8e 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -88,6 +88,12 @@ public:
*/
const Timestamp& getLastWriteOpTimeTs() const;
+ /**
+ * Returns the oplog entry with the given statementId, if it exists.
+ */
+ boost::optional<repl::OplogEntry> checkStatementExecuted(OperationContext* opCtx,
+ StmtId stmtId);
+
private:
const LogicalSessionId _sessionId;