Try to fix spurious DSM failures on Windows.

Robert Haas <rhaas@postgresql.org>

Commit: 1a81daab8be9a0b3769a2660db44a56a6035e34a
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-04-16T16:04:44Z
Releases: 9.4.0
Try to fix spurious DSM failures on Windows.

Apparently, Windows can sometimes return an error code even when the
operation actually worked just fine.  Rearrange the order of checks
according to what appear to be the best practices in this area.

Amit Kapila

Files

PathChange+/−
src/backend/storage/ipc/dsm_impl.c modified +18 −10