box: zap key_part_def struct
The only difference between struct key_part_def and struct key_part is that the former stores only the id of a collation while the latter also stores a pointer to speed up tuple comparisons. It isn't worth keeping a separate struct just because of that. Let's use struct key_part everywhere and assume that key_part->coll is NULL if the part is needed solely for storing a decoded key part definition and isn't NULL if it is used for tuple comparisons (i.e. is attached to a key_def).
Showing
- src/box/alter.cc 9 additions, 9 deletionssrc/box/alter.cc
- src/box/key_def.c 38 additions, 40 deletionssrc/box/key_def.c
- src/box/key_def.h 18 additions, 20 deletionssrc/box/key_def.h
- src/box/vy_log.c 10 additions, 10 deletionssrc/box/vy_log.c
- src/box/vy_log.h 3 additions, 3 deletionssrc/box/vy_log.h
Loading
Please register or sign in to comment