box: use bitmap to check for missing fields in tuple_init_field_map
Reworked tuple_init_field_map to fill a local bitmap and compare it with template required_fields bitmap containing information about required fields. Each field is mapped to bitmap with field:id - unique field identifier. This approach to check the required fields will work even after the introduction of JSON paths, when the field tree becomes multilevel. @locker: massive code refactoring, comments. Needed for #1012
Showing
- src/box/errcode.h 1 addition, 1 deletionsrc/box/errcode.h
- src/box/tuple_format.c 102 additions, 10 deletionssrc/box/tuple_format.c
- src/box/tuple_format.h 12 additions, 0 deletionssrc/box/tuple_format.h
- test/box/alter_limits.result 2 additions, 4 deletionstest/box/alter_limits.result
- test/box/ddl.result 6 additions, 12 deletionstest/box/ddl.result
- test/box/misc.result 1 addition, 1 deletiontest/box/misc.result
- test/box/sql.result 3 additions, 6 deletionstest/box/sql.result
- test/box/tree_pk_multipart.result 2 additions, 4 deletionstest/box/tree_pk_multipart.result
- test/engine/ddl.result 7 additions, 14 deletionstest/engine/ddl.result
- test/engine/null.result 13 additions, 26 deletionstest/engine/null.result
- test/vinyl/constraint.result 3 additions, 6 deletionstest/vinyl/constraint.result
- test/vinyl/errinj.result 3 additions, 6 deletionstest/vinyl/errinj.result
- test/vinyl/savepoint.result 2 additions, 4 deletionstest/vinyl/savepoint.result
Loading
Please register or sign in to comment