pgsql-server/src/backend/access/transam xlog.c

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/backend/access/transam xlog.c
Date: 2003-01-25 03:06:05
Message-ID: 20030125030605.0528B475DBD@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)postgresql(dot)org 03/01/24 22:06:04

Modified files:
src/backend/access/transam: xlog.c

Log message:
Use stat(2) to probe for existing xlog segments in InstallXLogFileSegment,
rather than actually opening the files. This eliminates some corner cases
where the file indeed exists but open() fails for another reason, such
as being out of file descriptors. The net reliability gain is probably
tiny, since xlog.c is full of other file open calls that will elog(PANIC)
if they fail for any reason; but this specific failure mode has been
observed in the field, so we may as well fix it.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2003-01-25 05:19:49 pgsql-server/ /configure /configure.in rc/back ...
Previous Message Tom Lane 2003-01-24 21:53:29 pgsql-server/src/backend/utils/adt acl.c