8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43: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:
Ilya Eremin 2022-03-16 11:01:51 +03:00 committed by Alexander Peshkov
parent 67cb2f8180
commit 2f58d46285

View File

@ -1243,6 +1243,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);
}