1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix "use mutex before initialization" bug in example_km plugin

that for some reasons worked on linux, but crashed on windows
This commit is contained in:
Sergei Golubchik
2015-04-10 09:46:21 +02:00
parent 966b236612
commit 7d49e6940e

View File

@ -104,8 +104,8 @@ static int example_key_management_plugin_init(void *p)
{
/* init */
my_rnd_init(&seed, time(0), 0);
get_latest_key_version(1);
pthread_mutex_init(&mutex, NULL);
get_latest_key_version(1);
return 0;
}