Skip to content

Commit 1481b3b

Browse files
committed
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.
1 parent 3e9014d commit 1481b3b

File tree

1 file changed

+1
-2
lines changed
  • src/backend/access/transam

1 file changed

+1
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.76 2001/09/06 02:02:48 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.77 2001/09/26 20:24:02 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2462,7 +2462,6 @@ StartupXLOG(void)
24622462
ReadControlFile();
24632463

24642464
if (ControlFile->logSeg == 0 ||
2465-
ControlFile->time <= 0 ||
24662465
ControlFile->state < DB_SHUTDOWNED ||
24672466
ControlFile->state > DB_IN_PRODUCTION ||
24682467
!XRecOffIsValid(ControlFile->checkPoint.xrecoff))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy