List:Commits« Previous MessageNext Message »
From:Konstantin Osipov Date:October 14 2008 2:54pm
Subject:Re: bzr commit into mysql-5.1 branch (davi:2770) Bug#38941
View as plain text  
* Davi Arnaut <Davi.Arnaut@stripped> [08/10/09 04:43]:
>  2770 Davi Arnaut	2008-10-08
>       Bug#38941: fast mutexes in MySQL 5.1 have mutex contention when calling
> random()
>       

OK to push.

Please add a formal comment for this function (in particular,
describe range of input and output.

> +static double park_rng(my_pthread_fastmutex_t *mp)
> +{
> +  mp->rng_state= ((my_ulonglong)mp->rng_state * 279470273U) % 4294967291U;
> +  return (mp->rng_state / 2147483647.0);
> +}

-- 
Thread
bzr commit into mysql-5.1 branch (davi:2770) Bug#38941Davi Arnaut9 Oct
  • Re: bzr commit into mysql-5.1 branch (davi:2770) Bug#38941Konstantin Osipov14 Oct