mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Fix problem reported by Carsten Schäfer in fbdevel of incorrect server start when using connection pooling
This commit is contained in:
parent
e2041f1f76
commit
4191332d2f
@ -5561,16 +5561,21 @@ static Database* init(thread_db* tdbb,
|
||||
// If this is the first time through, initialize local mutexes and set
|
||||
// up a cleanup handler. Regardless, then lock the database mutex.
|
||||
|
||||
if (!initialized) {
|
||||
if (!initialized)
|
||||
{
|
||||
THREAD_EXIT();
|
||||
THD_GLOBAL_MUTEX_LOCK;
|
||||
THREAD_ENTER();
|
||||
IntlManager::initialize();
|
||||
PluginManager::load_engine_plugins();
|
||||
if (!initialized) {
|
||||
|
||||
if (!initialized)
|
||||
{
|
||||
JRD_SS_INIT_MUTEX;
|
||||
gds__register_cleanup(cleanup, 0);
|
||||
initialized = true;
|
||||
|
||||
IntlManager::initialize();
|
||||
PluginManager::load_engine_plugins();
|
||||
|
||||
JRD_cache_default = Config::getDefaultDbCachePages();
|
||||
if (JRD_cache_default < MIN_PAGE_BUFFERS)
|
||||
JRD_cache_default = MIN_PAGE_BUFFERS;
|
||||
|
Loading…
Reference in New Issue
Block a user