• Sergey Vojtovich's avatar
    MDEV-363 - Server crashes in intern_plugin_lock on concurrent installing · 3a50a8c9
    Sergey Vojtovich authored
               semisync plugin and setting rpl_semi_sync_master_enabled
    
    There was race condition between INSTALL PLUGIN and SET. It was caused by a
    gap in INSTALL PLUGIN when plugin variables were registered but not fully
    initialized. Accessing such variables concurrently may reference uninitialized
    memory, specifically sys_var_pluginvar::plugin.
    
    Fixed by initializing sys_var_pluginvar::plugin early, before variable is
    registered.
    3a50a8c9
sql_plugin.cc 118 KB