From: Vladimir Davydov via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: mechanik20051988 <mechanik20051988@tarantool.org> Cc: tarantool-patches@dev.tarantool.org, v.shpilevoy@tarantool.org, mechanik20051988 <mechanik20.05.1988@gmail.com> Subject: Re: [Tarantool-patches] [PATCH v4 8/9] iproto: implement interactive transactions over iproto streams Date: Thu, 12 Aug 2021 13:48:59 +0300 [thread overview] Message-ID: <20210812104859.smvrftjrdqezgpcv@esperanza> (raw) In-Reply-To: <4cfe4cc12fdc83d1620c9df180e2054501c123fa.1628759886.git.mechanik20051988@tarantool.org> On Thu, Aug 12, 2021 at 12:50:45PM +0300, mechanik20051988 wrote: > diff --git a/src/box/call.c b/src/box/call.c > index a6384efe2..0ce84b1ed 100644 > --- a/src/box/call.c > +++ b/src/box/call.c > @@ -715,7 +740,17 @@ iproto_msg_new(struct iproto_connection *con) > static inline bool > iproto_connection_is_idle(struct iproto_connection *con) > { > + /* > + * The check for 'mh_size (streams) == 0' was added, because it is Please fix formatting (you use spaces instead of tabs here). > + * possible that when disconnect occurs, there is active transaction > + * in stream after processing all messages. In this case we send > + * special message to rollback it, and without this check we would > + * immidiatly send special message to destroy connection. This would immediately > + * not lead to error now, since the messages are processed strictly > + * sequentially, and rollback does not yield, but it is not safely and and? > + */ > return con->long_poll_count == 0 && > + mh_size(con->streams) == 0 && > ibuf_used(&con->ibuf[0]) == 0 && > ibuf_used(&con->ibuf[1]) == 0; > }
next prev parent reply other threads:[~2021-08-12 10:49 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-12 9:50 [Tarantool-patches] [PATCH v4 0/9] implement " mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 1/9] xrow: remove unused call_request::header mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 2/9] iproto: clear request::header for client requests mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 3/9] iproto: implement stream id in binary iproto protocol mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 4/9] salad: fix segfault in case when mhash table allocation failure mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 5/9] iproto: implement streams in iproto mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 6/9] net.box: add stream support to net.box mechanik20051988 via Tarantool-patches 2021-08-12 17:49 ` Vladislav Shpilevoy via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 7/9] iproto: add RAFT prefix for all requests related to 'raft' mechanik20051988 via Tarantool-patches 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 8/9] iproto: implement interactive transactions over iproto streams mechanik20051988 via Tarantool-patches 2021-08-12 10:48 ` Vladimir Davydov via Tarantool-patches [this message] 2021-08-12 9:50 ` [Tarantool-patches] [PATCH v4 9/9] net.box: add interactive transaction support in net.box mechanik20051988 via Tarantool-patches 2021-08-12 17:52 ` Vladislav Shpilevoy via Tarantool-patches 2021-08-13 7:44 ` Vladimir Davydov via Tarantool-patches 2021-08-12 10:51 ` [Tarantool-patches] [PATCH v4 0/9] implement iproto streams Vladimir Davydov via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210812104859.smvrftjrdqezgpcv@esperanza \ --to=tarantool-patches@dev.tarantool.org \ --cc=mechanik20.05.1988@gmail.com \ --cc=mechanik20051988@tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --cc=vdavydov@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v4 8/9] iproto: implement interactive transactions over iproto streams' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox