[Tarantool-patches] [PATCH v3 2/2] replication: append NOP as the last tx row

Cyrill Gorcunov gorcunov at gmail.com
Thu Jul 2 18:37:43 MSK 2020


On Thu, Jul 02, 2020 at 04:39:51PM +0300, Serge Petrenko wrote:
> Since we stopped sending local space operations in replication, the last
> tx row has to be global in order to preserve tx boundaries on replica.
> If the last row happens to be a local one, replica will never receive
> the tx end marker, yielding the following errors:
> `ER_UNSUPPORTED: replication does not support interleaving
> transactions`.
> 
> In order to fix the problem append a global NOP row at the tx end if
> it happens to end on a local row.
> 
> Follow-up #4114
> Closes #4928

I've been trying to find out better place for this allocation (or even
use preallocated static one) but since we need to assign lsn later in
wal code none of ideas work. Thus lets keep it this way.

Reviewed-by: Cyrill Gorcunov <gorcunov at gmail.com>


More information about the Tarantool-patches mailing list