diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-04-02 10:39:24 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-04-02 10:39:24 -0400 |
commit | f272098e91708eecdfafb706b3a3409dd9593f10 (patch) | |
tree | cef914c74840ce4e5b061c914bc307028ed77279 /src | |
parent | 4cd639baf4bd35dd7fc924009203349b81bdcd68 (diff) | |
download | postgresql-f272098e91708eecdfafb706b3a3409dd9593f10.tar.gz postgresql-f272098e91708eecdfafb706b3a3409dd9593f10.zip |
Fix another bug in DSM_CREATE_NULL_IF_MAXSEGMENTS handling.
Amit Kapila
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/ipc/dsm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/storage/ipc/dsm.c b/src/backend/storage/ipc/dsm.c index 321bad95461..29e46c28b42 100644 --- a/src/backend/storage/ipc/dsm.c +++ b/src/backend/storage/ipc/dsm.c @@ -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) |