OSDN Git Service

Change Windows rename and unlink substitutes so that they time out after
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2006 20:12:05 +0000 (20:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2006 20:12:05 +0000 (20:12 +0000)
commitdcbdf9b1d46dc9f95c55f78da4754ded4f0cd17d
tree1491476e2bd79f27b13abb429512793cabb526b4
parent808b3190d143f3df7217f94aff9e97fdf19c790a
Change Windows rename and unlink substitutes so that they time out after
30 seconds instead of retrying forever.  Also modify xlog.c so that if
it fails to rename an old xlog segment up to a future slot, it will
unlink the segment instead.  Per discussion of bug #2712, in which it
became apparent that Windows can handle unlinking a file that's being
held open, but not renaming it.
src/backend/access/transam/xlog.c
src/port/dirmod.c