mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix another bug in DSM_CREATE_NULL_IF_MAXSEGMENTS handling.
Amit Kapila
This commit is contained in:
parent
4cd639baf4
commit
f272098e91
@ -502,6 +502,7 @@ dsm_create(Size size, int flags)
|
|||||||
{
|
{
|
||||||
if ((flags & DSM_CREATE_NULL_IF_MAXSEGMENTS) != 0)
|
if ((flags & DSM_CREATE_NULL_IF_MAXSEGMENTS) != 0)
|
||||||
{
|
{
|
||||||
|
LWLockRelease(DynamicSharedMemoryControlLock);
|
||||||
dsm_impl_op(DSM_OP_DESTROY, seg->handle, 0, &seg->impl_private,
|
dsm_impl_op(DSM_OP_DESTROY, seg->handle, 0, &seg->impl_private,
|
||||||
&seg->mapped_address, &seg->mapped_size, WARNING);
|
&seg->mapped_address, &seg->mapped_size, WARNING);
|
||||||
if (seg->resowner != NULL)
|
if (seg->resowner != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user