Re: Sync Rep v19

Simon Riggs <simon@2ndquadrant.com>

From: Simon Riggs <simon@2ndQuadrant.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org
Date: 2011-03-05T12:21:26Z
Lists: pgsql-hackers
On Sat, 2011-03-05 at 11:04 +0000, Simon Riggs wrote:
> > +             /*
> > +              * Assume the queue is ordered by LSN
> > +              */
> > +             if (XLByteLT(walsndctl->lsn, proc->waitLSN))
> > +                     return numprocs;
> > 
> > The code to ensure the assumption needs to be added.
> 
> Yes, just need to add the code for traversing list backwards.

I've added code to shmqueue.c to allow this.

New version pushed.

-- 
 Simon Riggs           http://www.2ndQuadrant.com/books/
 PostgreSQL Development, 24x7 Support, Training and Services