From 87aacd32eaf12472b430223ca23a6b172b7af6f4 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Tue, 13 Dec 2022 09:33:35 -0500 Subject: SERVER-72006 add OpObserver::onTransactionStart() --- src/mongo/db/op_observer/op_observer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mongo/db/op_observer/op_observer.h') 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 @@ -406,6 +406,12 @@ public: const NamespaceString& collectionName, 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 -- cgit v1.2.1