summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/include/txn.i
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2019-07-12 16:51:32 +1000
committerLuke Chen <luke.chen@mongodb.com>2019-07-12 16:51:32 +1000
commit67b760c562d7f189bad589841b4dcd14acf702d9 (patch)
treebd2291d5306357a1093125f19ae01d5c03d9547c /src/third_party/wiredtiger/src/include/txn.i
parent9ae337bd27f7a513df548256400596a6eba4d7a3 (diff)
downloadmongo-67b760c562d7f189bad589841b4dcd14acf702d9.tar.gz
Import wiredtiger: 3f686382114354b29b1d92b9c4a7dfc870dc5b94 from branch mongodb-4.2
ref: 99e0760cc5..3f68638211 for: 4.3.1 WT-4530 WiredTiger session statistics cursor returns incorrect key on BigEndian systems WT-4612 Improve test coverage for prepare updates older than the oldest WT-4791 Coverity: Dereferencing null (cbt->ins) WT-4842 Enhance lookaside score calculation WT-4857 Fix a bug in column store where skip list traversal could miss an entry WT-4889 Dump additional transaction fields WT-4913 Fix the Windows CRC32 on blocks that aren't 8B aligned and/or multiples of 8B WT-4916 Clang Format pre-formatting fixes WT-4926 Fix the WiredTiger static test suite's test for EBUSY failures WT-4927 Allow updates with timestamps to be evicted to lookaside WT-4928 Fix clang scan warnings in Jenkins Pull Request testing
Diffstat (limited to 'src/third_party/wiredtiger/src/include/txn.i')
-rw-r--r--src/third_party/wiredtiger/src/include/txn.i9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/src/include/txn.i b/src/third_party/wiredtiger/src/include/txn.i
index abb2b1ccc66..ed7ea3b9b67 100644
--- a/src/third_party/wiredtiger/src/include/txn.i
+++ b/src/third_party/wiredtiger/src/include/txn.i
@@ -427,7 +427,7 @@ __wt_txn_op_delete_commit_apply_timestamps(
/*
* __wt_txn_op_set_timestamp --
* Decide whether to copy a commit timestamp into an update. If the op
- * structure doesn't have a populated update or ref field or in prepared
+ * structure doesn't have a populated update or ref field or is in prepared
* state there won't be any check for an existing timestamp.
*/
static inline void
@@ -716,7 +716,12 @@ __wt_txn_upd_visible_all(WT_SESSION_IMPL *session, WT_UPDATE *upd)
upd->prepare_state == WT_PREPARE_INPROGRESS)
return (false);
- return (__wt_txn_visible_all(session, upd->txnid, upd->start_ts));
+ /*
+ * This function is used to determine when an update is obsolete: that
+ * should take into account the durable timestamp which is greater than
+ * or equal to the start timestamp.
+ */
+ return (__wt_txn_visible_all(session, upd->txnid, upd->durable_ts));
}
/*