Skip to content

Commit

Permalink
Suggested fix for #7514: Segfault when detaching after deleting shado…
Browse files Browse the repository at this point in the history
…w on Classic
  • Loading branch information
AlexPeshkoff committed Mar 29, 2023
1 parent 7fb0a59 commit 084930e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jrd/sdw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 084930e

Please sign in to comment.