8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 23:23:04 +01:00

Avoid recursive locking of plugins list mutex. This fixed deadlock at PluginSet::next.

This commit is contained in:
hvlad 2018-04-22 00:31:55 +03:00
parent b26306977f
commit ee92f30f09

View File

@ -1088,8 +1088,6 @@ IPluginSet* PluginManager::getPlugins(CheckStatusWrapper* status, unsigned int i
static InitMutex<BuiltinRegister> registerBuiltinPlugins("RegisterBuiltinPlugins");
registerBuiltinPlugins.init();
MutexLockGuard g(plugins->mutex, FB_FUNCTION);
IPluginSet* rc = FB_NEW PluginSet(interfaceType, namesList, firebirdConf);
rc->addRef();
return rc;