From 5bbfebba2d62782141fe4684f69b636c51c80de1 Mon Sep 17 00:00:00 2001 From: Alejandro Lopez Date: Mon, 7 Aug 2023 12:05:00 +0300 Subject: [PATCH] [#570] Fix writecache type constant copy-pasta bug Signed-off-by: Alejandro Lopez --- cmd/frostfs-node/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frostfs-node/config.go b/cmd/frostfs-node/config.go index 2a84805d..31b1a793 100644 --- a/cmd/frostfs-node/config.go +++ b/cmd/frostfs-node/config.go @@ -728,7 +728,7 @@ func (c *cfg) getWriteCacheOpts(shCfg shardCfg) writecacheconfig.Options { writecachebbolt.WithLogger(c.log), ) case writecacheconfig.TypeBadger: - writeCacheOpts.Type = writecacheconfig.TypeBBolt + writeCacheOpts.Type = writecacheconfig.TypeBadger writeCacheOpts.BadgerOptions = append(writeCacheOpts.BadgerOptions, writecachebadger.WithPath(wcRead.path), writecachebadger.WithMaxObjectSize(wcRead.maxObjSize),