mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 03:23:03 +01:00
Avoid recursive locking of plugins list mutex. This fixed deadlock at PluginSet::next.
This commit is contained in:
parent
b26306977f
commit
ee92f30f09
@ -1088,8 +1088,6 @@ IPluginSet* PluginManager::getPlugins(CheckStatusWrapper* status, unsigned int i
|
|||||||
static InitMutex<BuiltinRegister> registerBuiltinPlugins("RegisterBuiltinPlugins");
|
static InitMutex<BuiltinRegister> registerBuiltinPlugins("RegisterBuiltinPlugins");
|
||||||
registerBuiltinPlugins.init();
|
registerBuiltinPlugins.init();
|
||||||
|
|
||||||
MutexLockGuard g(plugins->mutex, FB_FUNCTION);
|
|
||||||
|
|
||||||
IPluginSet* rc = FB_NEW PluginSet(interfaceType, namesList, firebirdConf);
|
IPluginSet* rc = FB_NEW PluginSet(interfaceType, namesList, firebirdConf);
|
||||||
rc->addRef();
|
rc->addRef();
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user