vinyl: refactor index creation and deletion functions
We can't move vy_index_new() to a separate file right now, because it depends on vy_env and we can't just replace vy_env with vy_index_env and vy_cache_env there, because the function is called from outside vinyl.c. To deal with that, let's introduce wrappers around vy_index_new() and vy_index_delete(), vy_new_index() and vy_delete_index(), which are vinyl C API functions that simply call the internal functions with appropriate arguments. Also, remove vy_index_ref() and vy_index_unref() from the C API, as they are not really necessary. Needed for #1906
Showing
- src/box/vinyl.c 49 additions, 8 deletionssrc/box/vinyl.c
- src/box/vinyl.h 8 additions, 24 deletionssrc/box/vinyl.h
- src/box/vinyl_index.cc 7 additions, 5 deletionssrc/box/vinyl_index.cc
- src/box/vinyl_index.h 2 additions, 2 deletionssrc/box/vinyl_index.h
- src/box/vinyl_space.cc 1 addition, 11 deletionssrc/box/vinyl_space.cc
Loading
Please register or sign in to comment