diff options
author | Benety Goh <benety@mongodb.com> | 2022-12-13 09:33:35 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-13 15:07:59 +0000 |
commit | 87aacd32eaf12472b430223ca23a6b172b7af6f4 (patch) | |
tree | 8a0066e7830e80cd055e323bd31a9a0336dc2e59 /src/mongo/db/op_observer/op_observer.h | |
parent | 5473d45336bfdeb7ec6c7384fd1beeaf47a4628e (diff) | |
download | mongo-87aacd32eaf12472b430223ca23a6b172b7af6f4.tar.gz |
SERVER-72006 add OpObserver::onTransactionStart()
Diffstat (limited to 'src/mongo/db/op_observer/op_observer.h')
-rw-r--r-- | src/mongo/db/op_observer/op_observer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer/op_observer.h b/src/mongo/db/op_observer/op_observer.h index 450e0ed4a70..5d9af84c73e 100644 --- a/src/mongo/db/op_observer/op_observer.h +++ b/src/mongo/db/op_observer/op_observer.h @@ -407,6 +407,12 @@ public: const UUID& uuid) = 0; /** + * The onTransaction Start method is called at the beginning of a multi-document transaction. + * It must not be called when the transaction is already in progress. + */ + virtual void onTransactionStart(OperationContext* opCtx) = 0; + + /** * The onUnpreparedTransactionCommit method is called on the commit of an unprepared * transaction, before the RecoveryUnit onCommit() is called. It must not be called when no * transaction is active. |