mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:03:03 +01:00
Print ON DISCONNECT trigger name with a stack trace to firebird.log when it is cancelled by a timeout
It may help to determine where the trigger is hanging.
This commit is contained in:
parent
040db0e05a
commit
fc85f89be4
@ -1252,6 +1252,14 @@ void EXE_execute_triggers(thread_db* tdbb,
|
||||
trigger->req_flags &= ~req_in_use;
|
||||
|
||||
ex.stuffException(tdbb->tdbb_status_vector);
|
||||
|
||||
if (trigger_action == TRIGGER_DISCONNECT &&
|
||||
!(tdbb->tdbb_flags & TDBB_stack_trace_done) && (tdbb->tdbb_flags & TDBB_sys_error))
|
||||
{
|
||||
stuff_stack_trace(trigger);
|
||||
tdbb->tdbb_flags |= TDBB_stack_trace_done;
|
||||
}
|
||||
|
||||
trigger_failure(tdbb, trigger);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user