[tarantool-patches] [PATCH] sql: swap FK masks during altering of space

Nikita Pettik korablev at tarantool.org
Mon Sep 16 14:17:56 MSK 2019


Pushed to master and backported to 2.1 and 2.2

On 15 Sep 15:42, Vladislav Shpilevoy wrote:
> Hi! Thanks for the patch! LGTM.
> 
> On 13/09/2019 21:08, Nikita Pettik wrote:
> > It was forgotten to swap old and new mask (holding fields involved into
> > foreign key relation) during space alteration (lists of object
> > representing FK metadata are swapped successfully). Since mask is vital
> > and depending on its value different byte-codes implementing SQL query
> > can be produced, this mistake resulted in assertion fault in debug build
> > and wrong constraint check in release build. Let's fix this bug and swap
> > masks as well as foreign key lists.
> > 
> > Closes #4495
> > ---
> > Branch: https://github.com/tarantool/tarantool/tree/np/gh-4495-swap-fk-mask
> > Issue: https://github.com/tarantool/tarantool/issues/4495




More information about the Tarantool-patches mailing list