diff options
Diffstat (limited to 'src/mongo/db/s/op_observer_sharding_impl.cpp')
-rw-r--r-- | src/mongo/db/s/op_observer_sharding_impl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/s/op_observer_sharding_impl.cpp b/src/mongo/db/s/op_observer_sharding_impl.cpp index 89818297838..ffbb83e4254 100644 --- a/src/mongo/db/s/op_observer_sharding_impl.cpp +++ b/src/mongo/db/s/op_observer_sharding_impl.cpp @@ -219,4 +219,14 @@ void OpObserverShardingImpl::shardObserveTransactionPrepareOrUnpreparedCommit( opCtx->getServiceContext(), stmts, prepareOrCommitOptime)); } +void OpObserverShardingImpl::shardObserveNonPrimaryTransactionPrepare( + OperationContext* opCtx, + const std::vector<repl::OplogEntry>& stmts, + const repl::OpTime& prepareOrCommitOptime) { + + opCtx->recoveryUnit()->registerChange( + std::make_unique<LogTransactionOperationsForShardingHandler>( + opCtx->getServiceContext(), stmts, prepareOrCommitOptime)); +} + } // namespace mongo |