Store tuple format in struct space
Currently, the format is stored in Handler and can be retrieved with Handler::format(). The only reason for such a layer of indirection is that the format should be created by an Engine method and currently it is created by Engine::createSpace(). Let's introduce a separate method for create a space format, Engine::createFormat(), and move the format back to where it belongs, i.e. to struct space. This is a step towards converting class Handler to struct space_vtab. Needed for #2776
Showing
- src/box/engine.cc 7 additions, 6 deletionssrc/box/engine.cc
- src/box/engine.h 11 additions, 12 deletionssrc/box/engine.h
- src/box/memtx_engine.cc 14 additions, 20 deletionssrc/box/memtx_engine.cc
- src/box/memtx_engine.h 5 additions, 4 deletionssrc/box/memtx_engine.h
- src/box/memtx_space.cc 8 additions, 21 deletionssrc/box/memtx_space.cc
- src/box/memtx_space.h 1 addition, 6 deletionssrc/box/memtx_space.h
- src/box/space.cc 13 additions, 3 deletionssrc/box/space.cc
- src/box/space.h 5 additions, 0 deletionssrc/box/space.h
- src/box/sysview_engine.cc 1 addition, 9 deletionssrc/box/sysview_engine.cc
- src/box/sysview_engine.h 1 addition, 4 deletionssrc/box/sysview_engine.h
- src/box/vinyl_engine.cc 14 additions, 19 deletionssrc/box/vinyl_engine.cc
- src/box/vinyl_engine.h 5 additions, 4 deletionssrc/box/vinyl_engine.h
- src/box/vinyl_space.cc 3 additions, 19 deletionssrc/box/vinyl_space.cc
- src/box/vinyl_space.h 0 additions, 6 deletionssrc/box/vinyl_space.h
Loading
Please register or sign in to comment