Re: Fix bug of clearing of waitStart in ProcWakeup()

Поиск
Список
Период
Сортировка
От Álvaro Herrera
Тема Re: Fix bug of clearing of waitStart in ProcWakeup()
Дата
Msg-id 202602241611.fycyz33zer3r@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Fix bug of clearing of waitStart in ProcWakeup()  (ji xu <thanksgreed@gmail.com>)
Ответы Re: Fix bug of clearing of waitStart in ProcWakeup()
Список 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 по дате отправления: