8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +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 040db0e05a
commit fc85f89be4

View File

@ -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);
}