diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2019-04-11 17:09:22 -0400 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2019-04-24 15:09:26 -0400 |
commit | 59b8237b04e3823265247585920e4639d51dcbaf (patch) | |
tree | 1e4a82232c8d1c6265a616a2a86e3aaf2d8d4700 /src/mongo/db/repl/oplog_interface_local.cpp | |
parent | 3f091c21945de3dff8a6897bbed9a557b6bed2a3 (diff) | |
download | mongo-59b8237b04e3823265247585920e4639d51dcbaf.tar.gz |
SERVER-39796 Make the transaction history iterator virtualizable, and make it available from
the OplogInterface used in rollback.
Diffstat (limited to 'src/mongo/db/repl/oplog_interface_local.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog_interface_local.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_interface_local.cpp b/src/mongo/db/repl/oplog_interface_local.cpp index b44baf7d1c8..1d79763f37d 100644 --- a/src/mongo/db/repl/oplog_interface_local.cpp +++ b/src/mongo/db/repl/oplog_interface_local.cpp @@ -100,6 +100,11 @@ std::unique_ptr<OplogInterface::Iterator> OplogInterfaceLocal::makeIterator() co return std::unique_ptr<OplogInterface::Iterator>(new OplogIteratorLocal(_opCtx)); } +std::unique_ptr<TransactionHistoryIteratorBase> OplogInterfaceLocal::makeTransactionHistoryIterator( + const OpTime& startingOpTime) const { + return std::make_unique<TransactionHistoryIterator>(startingOpTime); +} + HostAndPort OplogInterfaceLocal::hostAndPort() const { return {getHostNameCached(), serverGlobalParams.port}; } |