diff options
author | Tom Lane | 2001-09-26 20:24:02 +0000 |
---|---|---|
committer | Tom Lane | 2001-09-26 20:24:02 +0000 |
commit | 1481b3b28b4ff250bbe31da9628dafa2b7e6687a (patch) | |
tree | 06342f0f2bf5fdcd31f2058f2db51e5e8b48c6fd /src | |
parent | 3e9014d02c34e92349fee0e5019962efeb7bf9c7 (diff) |
Remove useless test for time field in pg_control being > 0. We don't
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xlog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index df04c0c2833..56a0e2ba6bb 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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)) |