mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08: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)
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user