* Davi Arnaut <Davi.Arnaut@stripped> [09/04/03 23:22]:
> 2726 Davi Arnaut 2009-04-03
> Bug#43230: SELECT ... FOR UPDATE can hang with FLUSH TABLES WITH READ LOCK
> indefinitely
>
OK to push.
> - if (!Select->add_table_to_list(YYTHD, $1, $2, 0, (thr_lock_type) $3))
> + thr_lock_type lock_type= (thr_lock_type) $3;
> + if (!Select->add_table_to_list(YYTHD, $1, $2, 0, lock_type))
> MYSQL_YYABORT;
> + /* If table is to be write locked, protect from a impending GRL. */
> + if (lock_type >= TL_WRITE_ALLOW_WRITE)
> + Lex->protect_against_global_read_lock= TRUE;
Please be careful when merging into 5.1: we removed all tabs
there.
--