box: introduce tuple_format_iterator class
The similar code in tuple_field_map_create and vy_stmt_new_surrogate_delete_raw that performs tuple decode with tuple_format has been refactored as reusable tuple_format_iterator class. Being thus encapsulated, this code will be uniformly managed and extended in the further patches in scope of multikey indexes. Extended engine/json test with vy_stmt_new_surrogate_delete_raw corner case test. There was no problem before this patch, but small bug appeared during tuple_format_iterator_next implementation was not covered. Needed for #1257
Showing
- src/box/tuple_format.c 193 additions, 165 deletionssrc/box/tuple_format.c
- src/box/tuple_format.h 118 additions, 0 deletionssrc/box/tuple_format.h
- src/box/vy_stmt.c 40 additions, 77 deletionssrc/box/vy_stmt.c
- test/engine/json.result 17 additions, 0 deletionstest/engine/json.result
- test/engine/json.test.lua 5 additions, 0 deletionstest/engine/json.test.lua
Loading
Please register or sign in to comment