[tarantool-patches] [wal 1/1] wal: Update request header after sequence update

Vladimir Davydov vdavydov.dev at gmail.com
Wed Apr 18 14:47:31 MSK 2018


On Tue, Apr 17, 2018 at 10:39:16AM +0300, Ilya Markov wrote:
> When tuple in insert/replace request has NULL value
> in the field incremented by sequence,
> request body is changed, NULL is replaced by value taken from
> sequence.
> But request header is not updated.
> So Redo log, which takes body from header if header exists,
> writes the old version of request to wal.
> 
> Fixed this with updating header value after handling the sequence.
> 
> Closes #3247
> ---
> branch gh-3247-wrong-sequence-primary-index
> 
>  src/box/request.c              |  7 +++++
>  test/replication/misc.result   | 66 ++++++++++++++++++++++++++++++++++++++++++
>  test/replication/misc.test.lua | 21 ++++++++++++++
>  3 files changed, 94 insertions(+)

Pushed to 1.9.



More information about the Tarantool-patches mailing list