mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-5.0
into hundin.mysql.fi:/home/jan/mysql-5.0
This commit is contained in:
@@ -310,11 +310,13 @@ read_cursor_view_create_for_mysql(
|
||||
n = 0;
|
||||
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) {
|
||||
if (trx->conc_state == TRX_ACTIVE ||
|
||||
trx->conc_state == TRX_PREPARED) {
|
||||
if (trx != cr_trx && (trx->conc_state == TRX_ACTIVE ||
|
||||
trx->conc_state == TRX_PREPARED)) {
|
||||
|
||||
read_view_set_nth_trx_id(view, n, trx->id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user