xlog: make log directory if needed
Tarantool's box.backup.start() returns the list of files needed to successfully run new instance. The problem was that it doesn't include empty indexes log directories. This means that after starting the instance using backed up files and inserting something into previously empty index we could run into log file creation error for example on box.snapshot() call. Now this is not a problem as far as according directories are created if needed. Corresponding test case added. Closes #5090
- src/box/xlog.c 7 additions, 0 deletionssrc/box/xlog.c
- src/lib/core/util.c 26 additions, 0 deletionssrc/lib/core/util.c
- src/trivia/util.h 3 additions, 0 deletionssrc/trivia/util.h
- test/box/gh-5090-empty-vinyl-backup.result 82 additions, 0 deletionstest/box/gh-5090-empty-vinyl-backup.result
- test/box/gh-5090-empty-vinyl-backup.test.lua 30 additions, 0 deletionstest/box/gh-5090-empty-vinyl-backup.test.lua
- test/box/lua/simple_instance.lua 3 additions, 0 deletionstest/box/lua/simple_instance.lua
-
mentioned in commit f818b910
-
mentioned in commit 25c0ee3e
-
mentioned in commit 50741ec5
-
mentioned in commit b0d63e82
-
mentioned in commit b989c86c
-
mentioned in commit 778681f8
-
mentioned in commit 53888582
-
mentioned in commit e06b5409
-
mentioned in commit d28b4007
-
mentioned in commit 452a009e
-
mentioned in commit e875c435
-
mentioned in commit 0d4ebc21
-
mentioned in commit a40513d0
-
mentioned in commit 8e388a81
-
mentioned in commit bfdc1ac8
-
mentioned in commit b15126a2
-
mentioned in commit 73a94dca
-
mentioned in commit 1a6271b7
-
mentioned in commit 9cdea178
-
mentioned in commit 29c6978a
-
mentioned in commit 9227a8c2
-
mentioned in commit 6aac5ac7
-
mentioned in commit d1d53d7f
-
mentioned in commit 74775f4c
-
mentioned in commit b3644e02
-
mentioned in commit e74335d0
-
mentioned in commit ab8f62d1
-
mentioned in commit 1142b73f