summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.h
diff options
context:
space:
mode:
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;