List:Commits« Previous MessageNext Message »
From:Konstantin Osipov Date:April 3 2009 8:11pm
Subject:Re: bzr commit into mysql-5.0-bugteam branch (davi:2726) Bug#43230
View as plain text  
* 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.


-- 
Thread
bzr commit into mysql-5.0-bugteam branch (davi:2726) Bug#43230Davi Arnaut3 Apr
  • Re: bzr commit into mysql-5.0-bugteam branch (davi:2726) Bug#43230Konstantin Osipov3 Apr