Skip to content

Commit f272098

Browse files
committed
Fix another bug in DSM_CREATE_NULL_IF_MAXSEGMENTS handling.
Amit Kapila
1 parent 4cd639b commit f272098

File tree

1 file changed

+1
-0
lines changed
  • src/backend/storage/ipc

1 file changed

+1
-0
lines changed

src/backend/storage/ipc/dsm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ dsm_create(Size size, int flags)
502502
{
503503
if ((flags & DSM_CREATE_NULL_IF_MAXSEGMENTS) != 0)
504504
{
505+
LWLockRelease(DynamicSharedMemoryControlLock);
505506
dsm_impl_op(DSM_OP_DESTROY, seg->handle, 0, &seg->impl_private,
506507
&seg->mapped_address, &seg->mapped_size, WARNING);
507508
if (seg->resowner != NULL)

0 commit comments

Comments
 (0)