[#1367] writecache: Move DB related code to upgrade.go

This is done to drop this file in the future.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-09-11 17:08:52 +03:00
parent 3b236160a6
commit f345fe9a58
5 changed files with 111 additions and 112 deletions

View file

@ -16,8 +16,6 @@ import (
"go.uber.org/zap"
)
const dbName = "small.bolt"
func (c *cache) openStore(mod mode.ComponentMode) error {
err := util.MkdirAllX(c.path, os.ModePerm)
if err != nil {