summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDon Anderson <dda@mongodb.com>2016-09-04 21:08:18 -0400
committerAlex Gorrod <alexander.gorrod@mongodb.com>2016-09-05 11:08:18 +1000
commit6a3c31c64bd05c5d6f3d537779f37a10bed232ae (patch)
tree45d9434d98b3651028fec282199a28611baac4f5 /src
parentac1f7401dcb8be345973f7787d9121c5c321bf7b (diff)
downloadmongo-6a3c31c64bd05c5d6f3d537779f37a10bed232ae.tar.gz
WT-2323 Allocate a transaction id at the beginning of join iteration (#2943)
Also improve tests for transactions within joins.
Diffstat (limited to 'src')
-rw-r--r--src/cursor/cur_join.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cursor/cur_join.c b/src/cursor/cur_join.c
index f6cd5d90f62..601bb593240 100644
--- a/src/cursor/cur_join.c
+++ b/src/cursor/cur_join.c
@@ -916,6 +916,9 @@ __curjoin_init_next(WT_SESSION_IMPL *session, WT_CURSOR_JOIN *cjoin,
"join cursor has not yet been joined with any other "
"cursors");
+ /* Get a consistent view of our subordinate cursors if appropriate. */
+ WT_RET(__wt_txn_cursor_op(session));
+
if (F_ISSET((WT_CURSOR *)cjoin, WT_CURSTD_RAW))
config = &raw_cfg[0];
else