diff options
author | Benety Goh <benety@mongodb.com> | 2022-12-08 15:33:57 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-08 21:50:01 +0000 |
commit | f8554485c1b1121da12a29c627193aa340bf8245 (patch) | |
tree | f967e7bd6f631d6764315253d2c7bd1e72014330 /src/mongo/db/op_observer/op_observer_registry.h | |
parent | fe2d44ca11588c665d17a164ac2c9aed2c24adfb (diff) | |
download | mongo-f8554485c1b1121da12a29c627193aa340bf8245.tar.gz |
SERVER-71657 OpObserver::preTransactionPrepare() does not modify TransactionOperations
Diffstat (limited to 'src/mongo/db/op_observer/op_observer_registry.h')
-rw-r--r-- | src/mongo/db/op_observer/op_observer_registry.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/op_observer/op_observer_registry.h b/src/mongo/db/op_observer/op_observer_registry.h index 7890ae3ac01..5e250ff15c1 100644 --- a/src/mongo/db/op_observer/op_observer_registry.h +++ b/src/mongo/db/op_observer/op_observer_registry.h @@ -431,13 +431,13 @@ public: std::unique_ptr<ApplyOpsOplogSlotAndOperationAssignment> preTransactionPrepare( OperationContext* opCtx, const std::vector<OplogSlot>& reservedSlots, - Date_t wallClockTime, - TransactionOperations* transactionOperations) override { + const TransactionOperations& transactionOperations, + Date_t wallClockTime) override { std::unique_ptr<ApplyOpsOplogSlotAndOperationAssignment> applyOpsOplogSlotAndOperationAssignment; for (auto&& observer : _observers) { auto applyOpsAssignment = observer->preTransactionPrepare( - opCtx, reservedSlots, wallClockTime, transactionOperations); + opCtx, reservedSlots, transactionOperations, wallClockTime); tassert(6278501, "More than one OpObserver returned operation to \"applyOps\" assignment", !(applyOpsAssignment && applyOpsOplogSlotAndOperationAssignment)); |