summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_registry.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-07-20 13:11:12 -0400
committerJudah Schvimer <judah@mongodb.com>2018-07-20 13:17:19 -0400
commit5b6fbcf0dc4065d725b23c6fd3911a24e078e34d (patch)
treef5da305a6d3dfb072146fa75f592c67099a03bd9 /src/mongo/db/op_observer_registry.h
parent4cdaee88d7122f3ccba152ae37d3b5b69b3b398f (diff)
downloadmongo-5b6fbcf0dc4065d725b23c6fd3911a24e078e34d.tar.gz
SERVER-35597 SERVER-35598 Ensure prepared transactions can be committed
Diffstat (limited to 'src/mongo/db/op_observer_registry.h')
-rw-r--r--src/mongo/db/op_observer_registry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer_registry.h b/src/mongo/db/op_observer_registry.h
index 2d322329c99..d1a34bbef6e 100644
--- a/src/mongo/db/op_observer_registry.h
+++ b/src/mongo/db/op_observer_registry.h
@@ -216,10 +216,10 @@ public:
o->onEmptyCapped(opCtx, collectionName, uuid);
}
- void onTransactionCommit(OperationContext* opCtx) override {
+ void onTransactionCommit(OperationContext* opCtx, bool wasPrepared) override {
ReservedTimes times{opCtx};
for (auto& o : _observers)
- o->onTransactionCommit(opCtx);
+ o->onTransactionCommit(opCtx, wasPrepared);
}
void onTransactionPrepare(OperationContext* opCtx) override {