Skip to content

Commit aa620dc

Browse files
committed
do not error out on dsm_attach null value. Retry instead
1 parent b1028f0 commit aa620dc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dmq.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -1325,9 +1325,10 @@ dmq_reattach_shm_mq(int handle_id)
13251325

13261326
dmq_local.inhandles[handle_id].dsm_seg = dsm_attach(receiver_dsm);
13271327
if (dmq_local.inhandles[handle_id].dsm_seg == NULL)
1328-
ereport(ERROR,
1329-
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
1330-
errmsg("unable to map dynamic shared memory segment")));
1328+
{
1329+
mtm_log(DmqTraceShmMq, "unable to map dynamic shared memory segment");
1330+
return false;
1331+
}
13311332

13321333
dsm_pin_mapping(dmq_local.inhandles[handle_id].dsm_seg);
13331334

0 commit comments

Comments
 (0)