Re: Minor fix in lwlock.c - Mailing list pgsql-patches

From Qingqing Zhou
Subject Re: Minor fix in lwlock.c
Date
Msg-id d353gf$2ao4$1@news.hub.org
Whole thread Raw
In response to Minor fix in lwlock.c  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Responses Re: Minor fix in lwlock.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes
> I don't see any reason to think we'd be unable to recover normally from
such a
> bug --- do you?
>

I guess the problem is here:

 /*
  * Fix the process wait semaphore's count for any absorbed wakeups.
  */
 while (extraWaits-- > 0)
  PGSemaphoreUnlock(&proc->sem);

elog(ERROR) won't recover semaphore count.




pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Minor fix in lwlock.c
Next
From: Tom Lane
Date:
Subject: Re: Minor fix in lwlock.c