mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Postfix for CORE-4908 - need to hold dbInitMutex up to the execution of ~InitHolder
This commit is contained in:
parent
dc3ddc4866
commit
877b056bf2
@ -808,16 +808,11 @@ Service::Service(const TEXT* service_name, USHORT spb_length, const UCHAR* spb_d
|
|||||||
|
|
||||||
#ifdef REEXPAND_DBNAME
|
#ifdef REEXPAND_DBNAME
|
||||||
// Needed to ensure correct locking order with security database mutex
|
// Needed to ensure correct locking order with security database mutex
|
||||||
MutexEnsureUnlock dbInitGuard(JRD_get_dbinitmutex());
|
MutexLockGuard dbInitGuard(JRD_get_dbinitmutex());
|
||||||
dbInitGuard.enter();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SecurityDatabase::InitHolder siHolder;
|
SecurityDatabase::InitHolder siHolder;
|
||||||
|
|
||||||
#ifdef REEXPAND_DBNAME
|
|
||||||
dbInitGuard.leave();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Perhaps checkout the user in the security database.
|
// Perhaps checkout the user in the security database.
|
||||||
USHORT user_flag;
|
USHORT user_flag;
|
||||||
if (!strcmp(serv->serv_name, "anonymous")) {
|
if (!strcmp(serv->serv_name, "anonymous")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user