salad: do not touch struct heap_node.pos in user's code
The only goal of reading and writing heap_node.pos was checking if a node is now in a heap, or not. This commit encapsulates this logic into a couple of functions.
Showing
- src/box/vy_lsm.c 6 additions, 6 deletionssrc/box/vy_lsm.c
- src/box/vy_range.c 1 addition, 1 deletionsrc/box/vy_range.c
- src/box/vy_range.h 1 addition, 1 deletionsrc/box/vy_range.h
- src/box/vy_scheduler.c 10 additions, 13 deletionssrc/box/vy_scheduler.c
- src/lib/salad/heap.h 20 additions, 3 deletionssrc/lib/salad/heap.h
Loading
Please register or sign in to comment