summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-09-07 09:59:20 -0400
committerJudah Schvimer <judah@mongodb.com>2018-09-07 09:59:20 -0400
commit688d4fb9a0d2ab17d37c3f5ca52d4af0a3b04764 (patch)
treecf32cbe29f8926e893946cf23fa04170432e5f1b /src/mongo/db/op_observer.h
parent2d79aaf6d2b65f0355fcaa5d368ec3c4f493495a (diff)
downloadmongo-688d4fb9a0d2ab17d37c3f5ca52d4af0a3b04764.tar.gz
SERVER-35863 log abortTransaction oplog entry when prepared transactions
abort
Diffstat (limited to 'src/mongo/db/op_observer.h')
-rw-r--r--src/mongo/db/op_observer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/op_observer.h b/src/mongo/db/op_observer.h
index 8f85478334a..953c52c6743 100644
--- a/src/mongo/db/op_observer.h
+++ b/src/mongo/db/op_observer.h
@@ -258,7 +258,8 @@ public:
/**
* The onTransactionAbort method is called when an atomic transaction aborts, before the
- * RecoveryUnit onRollback() is called. It must not be called when no transaction is active.
+ * RecoveryUnit onRollback() is called. It must be called when the transaction to abort is
+ * active.
*/
virtual void onTransactionAbort(OperationContext* opCtx) = 0;