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

From Fujii Masao
Subject Re: Fix bug of clearing of waitStart in ProcWakeup()
Date
Msg-id CAHGQGwHFGJeaWwy_0hCB57o+D3YhWi_zNPkwjpqfQpeiE2jZsA@mail.gmail.com
Whole thread
In response to Re: Fix bug of clearing of waitStart in ProcWakeup()  (Álvaro Herrera <alvherre@kurilemu.de>)
List pgsql-hackers
On Wed, Feb 25, 2026 at 1:12 AM Álvaro Herrera <alvherre@kurilemu.de> wrote:
>
> 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.

Yes, it's my mistake...

For the record, patch attached.

Regards,

--
Fujii Masao

Attachment

pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Don't cast away const where possible
Next
From: Nathan Bossart
Date:
Subject: Re: Proposal: ANALYZE (MODIFIED_STATS) using autoanalyze thresholds