mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Fixed one more 2PC related bug.
This commit is contained in:
parent
b9fe37fcdf
commit
31fa363fc1
@ -735,10 +735,10 @@ STATUS DLL_EXPORT GDS_ATTACH_DATABASE(STATUS* user_status,
|
||||
/* Check to see if the database is truly local or if it just looks
|
||||
that way */
|
||||
|
||||
int checkRemoteFiles = 0;
|
||||
if (FirebirdConfig::getSysBoolean("DoRemoteOpenForNFSFiles")) {
|
||||
checkRemoteFiles=1;
|
||||
}
|
||||
int checkRemoteFiles = 0;
|
||||
if (FirebirdConfig::getSysBoolean("DoRemoteOpenForNFSFiles")) {
|
||||
checkRemoteFiles=1;
|
||||
}
|
||||
if (ISC_check_if_remote(expanded_filename, checkRemoteFiles))
|
||||
ERR_post(gds_unavailable, 0);
|
||||
}
|
||||
@ -2374,6 +2374,10 @@ STATUS DLL_EXPORT GDS_DETACH(STATUS * user_status, ATT * handle)
|
||||
|
||||
} // try
|
||||
catch (...) {
|
||||
V4_JRD_MUTEX_LOCK(databases_mutex);
|
||||
dbb->dbb_flags &= ~DBB_not_in_use;
|
||||
V4_JRD_MUTEX_UNLOCK(databases_mutex);
|
||||
|
||||
JRD_SS_MUTEX_UNLOCK;
|
||||
return error(user_status);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user