vinyl: introduce a function to validate vy_index formats
vy_index_validate_formats() check consistency of vy_index formats. For example, all formats must have the same value of index_field_count and mem_format must be equal to disk_format for the primary index. Update disk_format for the primary key in the case when ALTER adds a new space:format() field.
Showing
- src/box/vinyl.c 14 additions, 7 deletionssrc/box/vinyl.c
- src/box/vinyl.h 1 addition, 4 deletionssrc/box/vinyl.h
- src/box/vinyl_index.cc 2 additions, 5 deletionssrc/box/vinyl_index.cc
- src/box/vinyl_index.h 1 addition, 2 deletionssrc/box/vinyl_index.h
- src/box/vinyl_space.cc 1 addition, 2 deletionssrc/box/vinyl_space.cc
- src/box/vy_index.c 32 additions, 7 deletionssrc/box/vy_index.c
- src/box/vy_index.h 8 additions, 2 deletionssrc/box/vy_index.h
- src/box/vy_stmt.c 6 additions, 6 deletionssrc/box/vy_stmt.c
- test/unit/vy_point_iterator.c 1 addition, 1 deletiontest/unit/vy_point_iterator.c
Loading
Please register or sign in to comment