From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 09837469711 for ; Fri, 29 May 2020 01:54:01 +0300 (MSK) References: <89a689f86a2d81e9fcd424375ef6d71432b2d720.1590403792.git.sergepetrenko@tarantool.org> From: Vladislav Shpilevoy Message-ID: <280a2b74-dbad-9cee-decf-abfb01b2894b@tarantool.org> Date: Fri, 29 May 2020 00:53:59 +0200 MIME-Version: 1.0 In-Reply-To: <89a689f86a2d81e9fcd424375ef6d71432b2d720.1590403792.git.sergepetrenko@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2 1/2] wal: fix tx boundaries List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Serge Petrenko , gorcunov@gmail.com, kostja.osipov@gmail.com Cc: tarantool-patches@dev.tarantool.org Thanks for the patch! > diff --git a/src/box/wal.c b/src/box/wal.c > index b979244e3..ef4d84920 100644 > --- a/src/box/wal.c > +++ b/src/box/wal.c > @@ -956,25 +956,37 @@ wal_assign_lsn(struct vclock *vclock_diff, struct vclock *base, > struct xrow_header **end) > { > int64_t tsn = 0; > + struct xrow_header **start = row; > + struct xrow_header **first_glob_row = row; > /** Assign LSN to all local rows. */ > for ( ; row < end; row++) { > if ((*row)->replica_id == 0) { > /* > * All rows representing local space data > - * manipulations are signed wth a zero > + * manipulations are signed with a zero > * instance id. This is also true for > * anonymous replicas, since they are > * only capable of writing to local and > * temporary spaces. > */ > - if ((*row)->group_id != GROUP_LOCAL) > + if ((*row)->group_id != GROUP_LOCAL) { > (*row)->replica_id = instance_id; > + } Seems like accidental diff.