Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWxDK-00042k-G6 for pgsql-bugs@arkaria.postgresql.org; Fri, 08 May 2020 07:14:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWxCn-0000fU-6y for pgsql-bugs@arkaria.postgresql.org; Fri, 08 May 2020 07:13:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWxCl-0000cu-Rb for pgsql-bugs@lists.postgresql.org; Fri, 08 May 2020 07:13:57 +0000 Received: from smtp126-121.mail.sohu.com ([111.202.126.121]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWxCb-0008D3-ER for pgsql-bugs@lists.postgresql.org; Fri, 08 May 2020 07:13:51 +0000 Received: from venue (unknown [218.94.89.51]) by smtp126-121.mail.sohu.com (Postfix) with ESMTPA id 49JM4b5XhFzbfgb for ; Fri, 8 May 2020 15:13:35 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sohu.com; s=mail; t=1588922015; bh=3c0py4XPdm2gnaDihqS0bKgizfCcj6btF6bDLr9WHxI=; h=Date:From:To:Subject:From; b=ti3GcAa2Ke8nmBCAF+ypMKfEDLzb4Pu0Wt/ubuAdZzoj33NScyp4m3czqH3TK2+gL R+pY+0FQnndP6s85AkBLD/l/qeouD5pxfnUpTN1UfEaZ39wgycQDl0Tf4D0JvJgY/B HK2lCzja3cqqmycsL2VR8uCsN7d7L5fl+CoAyQWA= Date: Fri, 8 May 2020 15:13:34 +0800 From: "bucoo@sohu.com" To: pgsql-bugs Subject: a bug for shm_mq X-Priority: 3 X-GUID: 4A665A95-A6A2-42D9-928F-A2B6B11F99D8 X-Has-Attach: no X-Mailer: Foxmail 7.2.15.80[cn] Mime-Version: 1.0 Message-ID: <2020050815133419172312@sohu.com> Content-Type: multipart/alternative; boundary="----=_001_NextPart777410468020_=----" X-Sohu-Gateway: 1 X-Sohu-Antispam-Language: 0 X-Sohu-Antispam-Score: 0.01 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. ------=_001_NextPart777410468020_=---- Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: base64 dmVyc2lvbjoxMCwxMSwxMixtYXN0ZXINCmluIGZ1bmN0aW9uIHNobV9tcV9zZW5kdiguLi4pIGxp bmUgNDkxLTQ5MiBjb2RlIGlzDQo0OTE6ICAgIC8qIElmIHF1ZXVlIGhhcyBiZWVuIGRldGFjaGVk LCBsZXQgY2FsbGVyIGtub3cuICovDQo0OTI6ICAgIGlmIChtcS0+bXFfZGV0YWNoZWQpDQo0OTM6 ICAgICAgICByZXR1cm4gU0hNX01RX0RFVEFDSEVEOw0Kd2hlbiBydW4gYmVmb3JlIGxpbmUgNDky LCB0aGUgcmVjZWl2ZXIgdHJ5IHJlY2VpdmUgbWVzc2FnZSh3aWxsIHN1Y2Nlc3NlcykgYW5kIGNh bGwgc2htX21xX2RldGFjaCguLi4pIGZ1bmN0aW9uLA0KdGhlbiB0aGlzIGZ1bmN0aW9uIHdpbGwg cmV0dXJuIFNITV9NUV9ERVRBQ0hFRCwgYWN0dWFsbHkgZGF0YSBzZW5kIHN1Y2Nlc3NlZCEhIQ0K DQoNCmJ1Y29vQHNvaHUuY29tDQo= ------=_001_NextPart777410468020_=---- Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0A
version:10,11,12,master
in function shm_mq_sendv(...) line 491-492 code is
491:    /*&n= bsp;If queue has been detached, let caller&n= bsp;know. */
492:    if (mq->mq_detached)
493= :        return SHM_MQ_DETACHED;
=0A
when r= un before line 492, the receiver try receive message(will successes) and c= all shm_mq_detach(...) function,
then this function will return = SHM_MQ_DETACHED, actually data send successed!!!

=0A
<= span>
bucoo@sohu.com
=0A ------=_001_NextPart777410468020_=------