Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e176384

Browse files
knizhnikkelvich
authored andcommitted
Correctly report lock wait time in case of e-enabling deadlock_timeout
1 parent 09e5ed1 commit e176384

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

multimaster.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5807,8 +5807,10 @@ MtmDetectGlobalDeadLockForXid(TransactionId xid)
58075807

58085808
if (!hasDeadlock)
58095809
{
5810+
TimestampTz start_time = get_timeout_start_time(DEADLOCK_TIMEOUT);
58105811
MTM_LOG1("Enable deadlock timeout in backend %d for transaction %llu", MyProcPid, (long64)xid);
58115812
enable_timeout_after(DEADLOCK_TIMEOUT, DeadlockTimeout);
5813+
set_timeout_start_time(DEADLOCK_TIMEOUT, start_time);
58125814
}
58135815
}
58145816
return hasDeadlock;

0 commit comments

Comments
 (0)