Re: Fix bug of clearing of waitStart in ProcWakeup() - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Fix bug of clearing of waitStart in ProcWakeup()
Date
Msg-id 202602241611.fycyz33zer3r@alvherre.pgsql
Whole thread Raw
In response to Re: Fix bug of clearing of waitStart in ProcWakeup()  (ji xu <thanksgreed@gmail.com>)
Responses Re: Fix bug of clearing of waitStart in ProcWakeup()
List pgsql-hackers
On 2026-Feb-24, ji xu wrote:

> Chao Li <li.evan.chao@gmail.com> 于2026年2月24日周二 14:29写道:
> 
> > ```
> > PGPROC *
> > ProcWakeup(PGPROC *proc, ProcWaitStatus waitStatus)
> > {

> >         pg_atomic_write_u64(&MyProc->waitStart, 0); <== Here, it should
> > operate on proc

I agree that this looks wrong.  AFAICS it comes from 46d6e5f56790.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
[…] indem ich in meinem Leben oft an euch gedacht, euch glücklich zu machen. Seyd es!
A menudo he pensado en vosotros, en haceros felices. ¡Sedlo, pues!
        Heiligenstädter Testament, L. v. Beethoven, 1802
        https://de.wikisource.org/wiki/Heiligenstädter_Testament



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Don't cast away const where possible
Next
From: Pavel Borisov
Date:
Subject: New isolation test insert-conflict-do-update-4 outputs rows in alternative ordering