|
7 | 7 | * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.60 2001/03/17 20:54:13 tgl Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.61 2001/03/18 00:30:27 tgl Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -1003,8 +1003,9 @@ XLogWrite(XLogwrtRqst WriteRqst)
|
1003 | 1003 |
|
1004 | 1004 | /* update pg_control, unless someone else already did */
|
1005 | 1005 | SpinAcquire(ControlFileLockId);
|
1006 |
| -if (ControlFile->logId!=openLogId|| |
1007 |
| -ControlFile->logSeg!=openLogSeg+1) |
| 1006 | +if (ControlFile->logId<openLogId|| |
| 1007 | +(ControlFile->logId==openLogId&& |
| 1008 | +ControlFile->logSeg<openLogSeg+1)) |
1008 | 1009 | {
|
1009 | 1010 | ControlFile->logId=openLogId;
|
1010 | 1011 | ControlFile->logSeg=openLogSeg+1;
|
|