]> granicus.if.org Git - postgresql/commitdiff
Remove useless test for time field in pg_control being > 0. We don't
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 26 Sep 2001 20:24:02 +0000 (20:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 26 Sep 2001 20:24:02 +0000 (20:24 +0000)
need this, and it will create a Y2038 failure.  Per report from David
Wheeler, who is evidently running on a platform where time_t is already
negative.

src/backend/access/transam/xlog.c

index df04c0c28335ed90a7ac3fcc8d4ec8b99316643b..56a0e2ba6bb4ffe79deabf3899caa65766714c44 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.76 2001/09/06 02:02:48 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.77 2001/09/26 20:24:02 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2462,7 +2462,6 @@ StartupXLOG(void)
        ReadControlFile();
 
        if (ControlFile->logSeg == 0 ||
-               ControlFile->time <= 0 ||
                ControlFile->state < DB_SHUTDOWNED ||
                ControlFile->state > DB_IN_PRODUCTION ||
                !XRecOffIsValid(ControlFile->checkPoint.xrecoff))