[tarantool-patches] [PATCH v4 3/9] txn: get rid of autocommit from a txn structure
Георгий Кириченко
georgy at tarantool.org
Thu Jun 20 23:16:41 MSK 2019
On Thursday, June 20, 2019 2:52:21 PM MSK Vladimir Davydov wrote:
> On Thu, Jun 20, 2019 at 12:23:10AM +0300, Georgy Kirichenko wrote:
> > @@ -1313,9 +1351,17 @@ box_sequence_reset(uint32_t seq_id)
> >
> > static inline void
> > box_register_replica(uint32_t id, const struct tt_uuid *uuid)
> > {
> >
> > + struct txn *txn = txn_begin();
> > + if (txn == NULL)
> > + diag_raise();
> >
> > if (boxk(IPROTO_INSERT, BOX_CLUSTER_ID, "[%u%s]",
> >
> > - (unsigned) id, tt_uuid_str(uuid)) != 0)
> > + (unsigned) id, tt_uuid_str(uuid)) != 0) {
> > + txn_rollback();
> >
> > diag_raise();
> >
> > + }
> > + if (txn_commit(txn) != 0)
> > + diag_raise();
> > + fiber_gc();
> >
> > assert(replica_by_uuid(uuid)->id == id);
> >
> > }
>
> It looks like you didn't addressed any of my comments to v3,
> neither did you reply to the email:
Oh, sorry, I forgot this one
>
>
> https://www.freelists.org/post/tarantool-patches/PATCH-v3-0514-txn-get-rid-> of-autocommit-from-a-txn-structure,1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.tarantool.org/pipermail/tarantool-patches/attachments/20190620/cc7d95cb/attachment.sig>
More information about the Tarantool-patches
mailing list