Skip to content

Commit

Permalink
[CBRD-25754] Print that DEADLOCK occurred even if malloc fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyahong committed Jan 5, 2025
1 parent a3a56f8 commit 4c2abb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/transaction/lock_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -8027,14 +8027,14 @@ lock_detect_local_deadlock (THREAD_ENTRY * thread_p)
/* dump deadlock cycle to event log file */
for (k = 0; k < victim_count; k++)
{
if (victims[k].log_num_entries == 0 || victims[k].log_entries == NULL)
{
continue;
}

log_fp = event_log_start (thread_p, "DEADLOCK");
if (log_fp != NULL)
{
if (victims[k].log_entries == NULL)
{
event_log_end (thread_p);
continue;
}
lock_event_log_deadlock_locks (thread_p, log_fp, victims[k].tran_index, victims[k].log_trunc,
victims[k].log_num_entries, victims[k].log_entries);
event_log_end (thread_p);
Expand Down

0 comments on commit 4c2abb7

Please sign in to comment.