summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2022-12-13 09:33:35 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-13 15:07:59 +0000
commit87aacd32eaf12472b430223ca23a6b172b7af6f4 (patch)
tree8a0066e7830e80cd055e323bd31a9a0336dc2e59 /src/mongo/db/repl
parent5473d45336bfdeb7ec6c7384fd1beeaf47a4628e (diff)
downloadmongo-87aacd32eaf12472b430223ca23a6b172b7af6f4.tar.gz
SERVER-72006 add OpObserver::onTransactionStart()
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/primary_only_service_op_observer.h2
-rw-r--r--src/mongo/db/repl/tenant_migration_donor_op_observer.h2
-rw-r--r--src/mongo/db/repl/tenant_migration_recipient_op_observer.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/primary_only_service_op_observer.h b/src/mongo/db/repl/primary_only_service_op_observer.h
index 9b06528db06..2a35458e883 100644
--- a/src/mongo/db/repl/primary_only_service_op_observer.h
+++ b/src/mongo/db/repl/primary_only_service_op_observer.h
@@ -204,6 +204,8 @@ public:
const NamespaceString& collectionName,
const UUID& uuid) final {}
+ void onTransactionStart(OperationContext* opCtx) final {}
+
void onUnpreparedTransactionCommit(OperationContext* opCtx,
const TransactionOperations& transactionOperations) final {}
diff --git a/src/mongo/db/repl/tenant_migration_donor_op_observer.h b/src/mongo/db/repl/tenant_migration_donor_op_observer.h
index f8efa3360db..2b7fc84b575 100644
--- a/src/mongo/db/repl/tenant_migration_donor_op_observer.h
+++ b/src/mongo/db/repl/tenant_migration_donor_op_observer.h
@@ -201,6 +201,8 @@ public:
const NamespaceString& collectionName,
const UUID& uuid) final {}
+ void onTransactionStart(OperationContext* opCtx) final {}
+
void onUnpreparedTransactionCommit(OperationContext* opCtx,
const TransactionOperations& transactionOperations) final {}
diff --git a/src/mongo/db/repl/tenant_migration_recipient_op_observer.h b/src/mongo/db/repl/tenant_migration_recipient_op_observer.h
index 3ec60f50b75..7170a1e10df 100644
--- a/src/mongo/db/repl/tenant_migration_recipient_op_observer.h
+++ b/src/mongo/db/repl/tenant_migration_recipient_op_observer.h
@@ -203,6 +203,8 @@ public:
const NamespaceString& collectionName,
const UUID& uuid) final {}
+ void onTransactionStart(OperationContext* opCtx) final {}
+
void onUnpreparedTransactionCommit(OperationContext* opCtx,
const TransactionOperations& transactionOperations) final {}