]> granicus.if.org Git - postgresql/commitdiff
In dsm_impl_windows, don't error out when the segment already exists.
authorRobert Haas <rhaas@postgresql.org>
Mon, 14 Oct 2013 15:48:49 +0000 (11:48 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 14 Oct 2013 15:48:49 +0000 (11:48 -0400)
This is the behavior of the other implementations, and the behavior
expected by the callers of this function.

Amit Kapila

src/backend/storage/ipc/dsm_impl.c

index 8e7273109b0d6b777e924de58c4e56b585d7d786..9f1ea5b0f8444e6221073c7999e4a92cad5e84e8 100644 (file)
@@ -694,10 +694,6 @@ dsm_impl_windows(dsm_op op, dsm_handle handle, uint64 request_size,
                         * modified.
                         */
                        CloseHandle(hmap);
-                       ereport(elevel,
-                                       (errcode_for_dynamic_shared_memory(),
-                                        errmsg("could not open shared memory segment \"%s\": %m",
-                                               name)));
                        return false;
                }
        }