mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Suggested fix for #7514: Segfault when detaching after deleting shadow on Classic
This commit is contained in:
parent
f56fc0f280
commit
89c7b2e139
@ -581,7 +581,11 @@ void SDW_get_shadows(thread_db* tdbb)
|
||||
// to prevent missing any new ones later on, although it does not
|
||||
// matter for the purposes of the current page being written
|
||||
|
||||
MET_get_shadow_files(tdbb, false);
|
||||
// no use even trying to get shadow files in a case when we invoked from
|
||||
// JRD_shutdown_database, i.e. there are no attachments to database
|
||||
|
||||
if (tdbb->getAttachment())
|
||||
MET_get_shadow_files(tdbb, false);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user