key_def: make key_compare take keys without header
We need to compare a tuple position with a search key in select() and pairs() to make sure the tuple position meets the search criteria. The problem is that we strip the MessagePack header from the position while key_compare() takes keys with headers. Let's make key_compare take keys without headers like the rest of comparator functions. Since in Vinyl we often need to compare keys with headers, we also add vy_key_compare() helper function. Needed for #8403 Needed for #8404 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring
Showing
- src/box/key_def.h 4 additions, 4 deletionssrc/box/key_def.h
- src/box/tuple_compare.cc 3 additions, 4 deletionssrc/box/tuple_compare.cc
- src/box/vy_range.c 3 additions, 3 deletionssrc/box/vy_range.c
- src/box/vy_stmt.h 18 additions, 3 deletionssrc/box/vy_stmt.h
- test/unit/key_def.c 7 additions, 2 deletionstest/unit/key_def.c
Loading