Cleanup vinyl engine initialization
Vinyl engine initialization is done in two steps: first we create the engine class and then we call ->init() method, which creates vinyl environment. There's no reason not to create the environment right in the engine class constructor, so let's move it there and drop ->init(). Also, let's pass engine parameters to the engine constructor, just like we do in case of memtx, instead of reading the config from the engine implementation.
Showing
- src/box/box.cc 7 additions, 2 deletionssrc/box/box.cc
- src/box/engine.cc 0 additions, 3 deletionssrc/box/engine.cc
- src/box/engine.h 0 additions, 2 deletionssrc/box/engine.h
- src/box/vinyl_engine.cc 6 additions, 16 deletionssrc/box/vinyl_engine.cc
- src/box/vinyl_engine.h 2 additions, 2 deletionssrc/box/vinyl_engine.h
Loading
Please register or sign in to comment