Commit bbd4f64a authored by unknown's avatar unknown

Allow consistent cursor view see changes made by creating transaction.

This is quick fix and needs to be fixed when semi-consistent 
high-granularity read view is implemented (Bug #12456).

parent 4d2bf4be
...@@ -310,11 +310,13 @@ read_cursor_view_create_for_mysql( ...@@ -310,11 +310,13 @@ read_cursor_view_create_for_mysql(
n = 0; n = 0;
trx = UT_LIST_GET_FIRST(trx_sys->trx_list); trx = UT_LIST_GET_FIRST(trx_sys->trx_list);
/* No active transaction should be visible, not even cr_trx !*/ /* No active transaction should be visible, except cr_trx.
This is quick fix for a bug 12456 and needs to be fixed when
semi-consistent high-granularity read view is implemented. */
while (trx) { while (trx) {
if (trx->conc_state == TRX_ACTIVE || if (trx != cr_trx && (trx->conc_state == TRX_ACTIVE ||
trx->conc_state == TRX_PREPARED) { trx->conc_state == TRX_PREPARED)) {
read_view_set_nth_trx_id(view, n, trx->id); read_view_set_nth_trx_id(view, n, trx->id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment