Commit f272098e authored by Robert Haas's avatar Robert Haas

Fix another bug in DSM_CREATE_NULL_IF_MAXSEGMENTS handling.

Amit Kapila
parent 4cd639ba
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment