summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_registry.h
diff options
context:
space:
mode:
authorJason Chan <jason.chan@10gen.com>2019-03-11 18:29:48 -0400
committerJason Chan <jason.chan@10gen.com>2019-03-11 18:31:00 -0400
commit14d7304ebc90df88abfacc12e2b22312c600e5a5 (patch)
treeab8be69ba882cdf3452a30177841a0ec299d0e0d /src/mongo/db/op_observer_registry.h
parent9ad8d6335f83fc14cb98a27533588e9503e8e7a5 (diff)
downloadmongo-14d7304ebc90df88abfacc12e2b22312c600e5a5.tar.gz
SERVER-39441 Write the new 'prepareTransaction' command on primary
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 946ee8893e9..d1c0713ab7d 100644
--- a/src/mongo/db/op_observer_registry.h
+++ b/src/mongo/db/op_observer_registry.h
@@ -277,11 +277,11 @@ public:
}
void onTransactionPrepare(OperationContext* opCtx,
- const OplogSlot& prepareOpTime,
+ const std::vector<OplogSlot>& reservedSlots,
std::vector<repl::ReplOperation>& statements) override {
ReservedTimes times{opCtx};
for (auto& observer : _observers) {
- observer->onTransactionPrepare(opCtx, prepareOpTime, statements);
+ observer->onTransactionPrepare(opCtx, reservedSlots, statements);
}
}