vinyl: allow to resize cache online
Make box.cfg.vinyl_cache option dynamically configured. If the new value is less than the current cache usage, it will block until it reclaims enough cache entries to fit in the new limit.
Showing
- src/box/box.cc 10 additions, 1 deletionsrc/box/box.cc
- src/box/box.h 1 addition, 0 deletionssrc/box/box.h
- src/box/lua/cfg.cc 12 additions, 0 deletionssrc/box/lua/cfg.cc
- src/box/lua/load_cfg.lua 1 addition, 0 deletionssrc/box/lua/load_cfg.lua
- src/box/vinyl.c 10 additions, 4 deletionssrc/box/vinyl.c
- src/box/vinyl.h 9 additions, 3 deletionssrc/box/vinyl.h
- src/box/vy_cache.c 17 additions, 3 deletionssrc/box/vy_cache.c
- src/box/vy_cache.h 12 additions, 3 deletionssrc/box/vy_cache.h
- test/unit/vy_iterators_helper.c 2 additions, 1 deletiontest/unit/vy_iterators_helper.c
- test/unit/vy_point_lookup.c 2 additions, 1 deletiontest/unit/vy_point_lookup.c
- test/vinyl/cache.result 45 additions, 0 deletionstest/vinyl/cache.result
- test/vinyl/cache.test.lua 17 additions, 0 deletionstest/vinyl/cache.test.lua
Loading
Please register or sign in to comment