← Back to team overview

maria-developers team mailing list archive

Re: Rev 4056: MDEV-5607: Query cache destroys uninitialized rwlock

 

Hi, Sanja!

On Feb 08, sanja@xxxxxxxxxxxx wrote:
> ------------------------------------------------------------
> revno: 4056
> revision-id: sanja@xxxxxxxxxxxx-20140208132448-qdkkpdncnya0tr6j
> parent: elenst@xxxxxxxxxxxxxx-20140205102537-7ern5gfca6a6ojg3
> committer: sanja@xxxxxxxxxxxx
> branch nick: work-maria-5.5-MDEV-5607
> timestamp: Sat 2014-02-08 15:24:48 +0200
> message:
>   MDEV-5607: Query cache destroys uninitialized rwlock
>   
>   - Resize destroyed rw_lock twice, now it is prevented.
>   - Trash destroyed rw lock.

> === modified file 'include/mysql/psi/mysql_thread.h'
> --- a/include/mysql/psi/mysql_thread.h	2013-01-11 00:03:43 +0000
> +++ b/include/mysql/psi/mysql_thread.h	2014-02-08 13:24:48 +0000
> @@ -16,6 +16,8 @@
>  #ifndef MYSQL_THREAD_H
>  #define MYSQL_THREAD_H
>  
> +#include <my_valgrind.h>

This is not ok.
Files under include/mysql/ are Plugin API files, they should be clean
from internal includes. You cannot include my_valgrind.h from there.
Do it in my_pthread.h

Regards,
Sergei


Follow ups