diff options
author | Ramon Fernandez <ramon@mongodb.com> | 2015-11-24 11:35:39 -0500 |
---|---|---|
committer | Ramon Fernandez <ramon@mongodb.com> | 2015-11-24 11:36:31 -0500 |
commit | 327660ff3324dfcb3ea38fc63a4fc7f1cdcb9078 (patch) | |
tree | 8b235079567e54a013a66210f1f6371ea41af785 /src/third_party/wiredtiger/src/btree | |
parent | 4f4cf16be11d2820974c1d6a0e95c9af3281e2d1 (diff) | |
download | mongo-327660ff3324dfcb3ea38fc63a4fc7f1cdcb9078.tar.gz |
Import wiredtiger-wiredtiger-mongodb-3.2.0-rc3-206-gb65381f.tar.gz from wiredtiger branch mongodb-3.2
ref: 4d72349..b65381f
e90b590 WT-2237 Avoid yields if we race allocating transaction IDs.
0a52a80 WT-2237 Have threads publish unique transaction IDs so that updates always become visible immediately on commit
Diffstat (limited to 'src/third_party/wiredtiger/src/btree')
-rw-r--r-- | src/third_party/wiredtiger/src/btree/bt_split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/src/btree/bt_split.c b/src/third_party/wiredtiger/src/btree/bt_split.c index c025ae62bb3..92ed2b3e559 100644 --- a/src/third_party/wiredtiger/src/btree/bt_split.c +++ b/src/third_party/wiredtiger/src/btree/bt_split.c @@ -408,7 +408,7 @@ __split_ref_move_final( * until all threads are known to have exited the index of the page that * previously "owned" the WT_REF. Set that field to a safe value. */ - txn_new_id = __wt_txn_new_id(session); + txn_new_id = __wt_txn_id_alloc(session, false); /* * The WT_REF structures moved to newly allocated child pages reference @@ -1822,7 +1822,7 @@ __split_insert(WT_SESSION_IMPL *session, WT_REF *ref) * threads will not try to forcibly evict the page again until * all concurrent transactions commit. */ - page->modify->inmem_split_txn = __wt_txn_new_id(session); + page->modify->inmem_split_txn = __wt_txn_id_alloc(session, false); /* * Update the page accounting. |