pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bucoo@sohu.com <bucoo@sohu.com>
To: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: a bug for shm_mq
Date: Fri, 8 May 2020 15:13:34 +0800
Message-ID: <2020050815133419172312@sohu.com> (raw)

version:10,11,12,master
in function shm_mq_sendv(...) line 491-492 code is
491:    /* If queue has been detached, let caller know. */
492:    if (mq->mq_detached)
493:        return SHM_MQ_DETACHED;
when run before line 492, the receiver try receive message(will successes) and call shm_mq_detach(...) function,
then this function will return SHM_MQ_DETACHED, actually data send successed!!!


bucoo@sohu.com


Message-ID: <2020050815133419172312@sohu.com>
Permalink:  ../2020050815133419172312@sohu.com/
Also on:    postgresql.org/message-id/2020050815133419172312@sohu.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: bucoo@sohu.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: a bug for shm_mq
  In-Reply-To: <2020050815133419172312@sohu.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox