key_def: cleanup virtual function initialization
- Rename key_def_set_cmp to key_def_set_func, because it sets not only comparators these days. - Rename tuple_hash_func_set and tuple_extract_key_set to key_def_set_hash_func and key_def_set_extract_func, because it's more like subject-verb-object naming convention used throughout the code. - Introduce key_def_set_compare_func and use it instead of setting comparators explicitly in key_def.c.
Showing
- src/box/key_def.c 8 additions, 9 deletionssrc/box/key_def.c
- src/box/tuple_compare.cc 9 additions, 2 deletionssrc/box/tuple_compare.cc
- src/box/tuple_compare.h 7 additions, 17 deletionssrc/box/tuple_compare.h
- src/box/tuple_extract_key.cc 1 addition, 1 deletionsrc/box/tuple_extract_key.cc
- src/box/tuple_extract_key.h 1 addition, 1 deletionsrc/box/tuple_extract_key.h
- src/box/tuple_hash.cc 1 addition, 1 deletionsrc/box/tuple_hash.cc
- src/box/tuple_hash.h 1 addition, 1 deletionsrc/box/tuple_hash.h
Loading
Please register or sign in to comment