Skip to content
/ server Public
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mysys/waiting_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ int wt_thd_will_wait_for(WT_THD *thd, WT_THD *blocker,
if (thd->killed)
{
stop_waiting_locked(thd);
rc_unlock(rc);
DBUG_RETURN(WT_DEADLOCK);
}
}
Expand All @@ -1017,12 +1018,14 @@ int wt_thd_will_wait_for(WT_THD *thd, WT_THD *blocker,
if (push_dynamic(&blocker->my_resources, (void*)&rc))
{
stop_waiting_locked(thd);
rc_unlock(rc);
DBUG_RETURN(WT_DEADLOCK); /* deadlock and OOM use the same error code */
}
if (push_dynamic(&rc->owners, (void*)&blocker))
{
pop_dynamic(&blocker->my_resources);
stop_waiting_locked(thd);
rc_unlock(rc);
DBUG_RETURN(WT_DEADLOCK);
}
}
Expand Down