Make the win32 shared memory code try 10 times instead of one if

Magnus Hagander <magnus@hagander.net>

Commit: 5d540add340040373364cec82caa288e6cc22533
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-05-05T09:48:51Z
Releases: 8.4.0
Make the win32 shared memory code try 10 times instead of one if
it fails because the shared memory segment already exists. This
means it can take up to 10 seconds before it reports the error
if it *does* exist, but hopefully it will make the system capable
of restarting even when the server is under high load.

Files

PathChange+/−
src/backend/port/win32_shmem.c modified +34 −34