10.02.2014 16:24, Sergei Golubchik пишет:
Hi, Sanja!
On Feb 08, [email protected] wrote:
------------------------------------------------------------
revno: 4056
revision-id: [email protected]
parent: [email protected]
committer: [email protected]
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
my_pthread is not suitable. In psi/mysql_thread defined wrapping class
and in that class the double destruction is visible (first version was
made as you recommended it my_pthread but it does not worked to
reproduce the bug).
I can use just memset() instead of TRASH().
_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~maria-developers
More help : https://help.launchpad.net/ListHelp