diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2019-06-03 17:24:54 -0400 |
---|---|---|
committer | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2019-06-10 17:31:43 -0400 |
commit | e297640646d2b38401698ab5e77c3770614b6d69 (patch) | |
tree | a8516f31562a81d0401b7f779904c4ec2239b1fc /src/mongo/db/transaction_history_iterator.h | |
parent | 24d7eb1cc37c9596067509828075a256f22700f7 (diff) | |
download | mongo-e297640646d2b38401698ab5e77c3770614b6d69.tar.gz |
SERVER-41448: TransactionHistoryIterator should only take global IS lock and use caller's read source
Diffstat (limited to 'src/mongo/db/transaction_history_iterator.h')
-rw-r--r-- | src/mongo/db/transaction_history_iterator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/transaction_history_iterator.h b/src/mongo/db/transaction_history_iterator.h index f3583eebc44..e81131131cc 100644 --- a/src/mongo/db/transaction_history_iterator.h +++ b/src/mongo/db/transaction_history_iterator.h @@ -74,6 +74,11 @@ public: repl::OplogEntry next(OperationContext* opCtx) override; repl::OpTime nextOpTime(OperationContext* opCtx) override; + /** + * Same as next() but makes exceptions fatal. + */ + repl::OplogEntry nextFatalOnErrors(OperationContext* opCtx); + private: // Clients can set this to allow PlanExecutors created by this TransactionHistoryIterator to // have a YIELD_AUTO yield policy. It is only safe to set this if next() will never be called |