[PATCH v1 1/1] vinyl: fix invalid tuple in surrogate delete

Vladimir Davydov vdavydov.dev at gmail.com
Tue Apr 2 20:09:54 MSK 2019


On Tue, Apr 02, 2019 at 01:59:11PM +0300, Kirill Shcherbatov wrote:
> If the map contains non-string keys that cannot be used in the
> JSON index, an incorrect tuple is created in
> vy_stmt_new_surrogate_delete_raw during the construction of the
> surrogate tuple. This occurs because the number of items that
> the map contains has already been copied, while such invalid
> key-value pairs are not copied.
> The poblem is resolved through the creation of dummy nil:nil
> pairs in such cases.
> ---
> https://github.com/tarantool/tarantool/tree/kshch/surrogate-delete-raw-fixup
> 
>  src/box/vy_stmt.c         |  3 +++
>  test/engine/json.result   | 22 ++++++++++++++++++++++
>  test/engine/json.test.lua |  9 +++++++++
>  3 files changed, 34 insertions(+)

Pushed to master, thanks.



More information about the Tarantool-patches mailing list