summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_history_iterator.h
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2019-06-03 17:24:54 -0400
committerLingzhi Deng <lingzhi.deng@mongodb.com>2019-06-10 17:31:43 -0400
commite297640646d2b38401698ab5e77c3770614b6d69 (patch)
treea8516f31562a81d0401b7f779904c4ec2239b1fc /src/mongo/db/transaction_history_iterator.h
parent24d7eb1cc37c9596067509828075a256f22700f7 (diff)
downloadmongo-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.h5
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