git.postgresql.org Git - postgresql.git/commit
2003年1月25日 03:06:04 +0000 (03:06 +0000)
2003年1月25日 03:06:04 +0000 (03:06 +0000)
commit 80727ce14fe61a66e840d663e3b7d12c0a8380ad
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.
This is the main PostgreSQL git repository.
RSS
Atom