Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1481b3b

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 DavidWheeler, who is evidently running on a platform where time_t is alreadynegative.
1 parent3e9014d commit1481b3b

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)

[8]ページ先頭

©2009-2025 Movatter.jp