mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Fix crash on IO error during database startup. I'm not sure this is very proper fix, but if it is we need to backport it to 1.5
This commit is contained in:
parent
f4f4cf2073
commit
5e551eb4ac
@ -488,6 +488,12 @@ void SCH_exit(void)
|
||||
|
||||
thread = active_thread;
|
||||
|
||||
// This is to prevent nasty crash if error (for example, IO error)
|
||||
// happens during attach to database in SS builds. Exception
|
||||
// handler there calls THREAD_EXIT without preceding THREAD_ENTER
|
||||
// in this case (during shutdown of CACHE_WRITER or CACHE_READER)
|
||||
if (!thread) return;
|
||||
|
||||
if (thread == thread->thread_next)
|
||||
active_thread = NULL;
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user