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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user