mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Fixed #7371: Various errors (fatal lock manager error, pthread_mutex_destroy failed) caused by races when opening/closing database
(cherry picked from commit aabae5c5a8
)
This commit is contained in:
parent
bba2051e7d
commit
0a54663469
@ -465,8 +465,8 @@ namespace Jrd
|
||||
|
||||
void Database::initGlobalObjects()
|
||||
{
|
||||
dbb_gblobj_holder =
|
||||
GlobalObjectHolder::init(getUniqueFileId(), dbb_filename, dbb_config);
|
||||
dbb_gblobj_holder.assignRefNoIncr(GlobalObjectHolder::init(getUniqueFileId(),
|
||||
dbb_filename, dbb_config));
|
||||
}
|
||||
|
||||
// Database::Linger class implementation
|
||||
@ -529,6 +529,7 @@ namespace Jrd
|
||||
g_hashTable->add(entry);
|
||||
}
|
||||
|
||||
entry->holder->addRef();
|
||||
return entry->holder;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user