Skip site navigation (1) Skip section navigation (2)

Re: Minor fix in lwlock.c

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Minor fix in lwlock.c
Date: 2005-04-08 05:04:25
Message-ID: d353gf$2ao4$1@news.hub.org (view raw or flat)
Thread:
Lists: pgsql-patches
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)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.




In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2005-04-08 05:20:42
Subject: Re: Minor fix in lwlock.c
Previous:From: Tom LaneDate: 2005-04-08 03:47:26
Subject: Re: Minor fix in lwlock.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group