Fix another bug in DSM_CREATE_NULL_IF_MAXSEGMENTS handling.

Amit Kapila
This commit is contained in:
Robert Haas 2015-04-02 10:39:24 -04:00
parent 4cd639baf4
commit f272098e91

View File

@ -502,6 +502,7 @@ dsm_create(Size size, int flags)
{
if ((flags & DSM_CREATE_NULL_IF_MAXSEGMENTS) != 0)
{
LWLockRelease(DynamicSharedMemoryControlLock);
dsm_impl_op(DSM_OP_DESTROY, seg->handle, 0, &seg->impl_private,
&seg->mapped_address, &seg->mapped_size, WARNING);
if (seg->resowner != NULL)