config: move snapshot related code into utils
Config's box.cfg applier scans snapshot_dir in order to find out, whether recovery is going to be done. It's needed in order to determine, whether the instance should be started into ro mode firstly. Let's move info about snapshot into separate file in utils. The commit also introduces snapshot_path, which will be used in the following commits in order to validate names. Needed for #8978 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring
Showing
- src/box/CMakeLists.txt 1 addition, 0 deletionssrc/box/CMakeLists.txt
- src/box/lua/config/applier/box_cfg.lua 4 additions, 52 deletionssrc/box/lua/config/applier/box_cfg.lua
- src/box/lua/config/utils/snapshot.lua 67 additions, 0 deletionssrc/box/lua/config/utils/snapshot.lua
- src/box/lua/init.c 5 additions, 0 deletionssrc/box/lua/init.c
src/box/lua/config/utils/snapshot.lua
0 → 100644
Please register or sign in to comment