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

Fix problem reported by Carsten Schäfer in fbdevel of incorrect server start when using connection pooling

This commit is contained in:
asfernandes 2006-10-10 03:53:08 +00:00
parent e2041f1f76
commit 4191332d2f

View File

@ -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;