]> granicus.if.org Git - postgresql/commit
Use stat(2) to probe for existing xlog segments in InstallXLogFileSegment,
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Jan 2003 03:06:04 +0000 (03:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Jan 2003 03:06:04 +0000 (03:06 +0000)
commit80727ce14fe61a66e840d663e3b7d12c0a8380ad
tree64fc65d130165dc9656198936292288ef2d6a44b
parent7a196bab23032dfb1793a0ffce72bdc7b77f3b44
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.
src/backend/access/transam/xlog.c