mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -104,8 +104,8 @@ static int example_key_management_plugin_init(void *p)
|
|||||||
{
|
{
|
||||||
/* init */
|
/* init */
|
||||||
my_rnd_init(&seed, time(0), 0);
|
my_rnd_init(&seed, time(0), 0);
|
||||||
get_latest_key_version(1);
|
|
||||||
pthread_mutex_init(&mutex, NULL);
|
pthread_mutex_init(&mutex, NULL);
|
||||||
|
get_latest_key_version(1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user