From 3bf1519b1dad615cb5466bb58e4b376f17df5135 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 18 Jan 2021 16:04:13 +0300 Subject: [PATCH] [#323] cmd/node: Set BoltDB timeout option of Metabase component Signed-off-by: Leonard Lyubich --- cmd/neofs-node/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 53ea28f90..c3706f4f6 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -36,6 +36,7 @@ import ( "github.com/panjf2000/ants/v2" "github.com/pkg/errors" "github.com/spf13/viper" + "go.etcd.io/bbolt" "go.uber.org/atomic" "go.uber.org/zap" "google.golang.org/grpc" @@ -572,6 +573,9 @@ func initShardOptions(c *cfg) { meta.WithLogger(c.log), meta.WithPath(metaPath), meta.WithPermissions(metaPerm), + meta.WithBoltDBOptions(&bbolt.Options{ + Timeout: 100 * time.Millisecond, + }), ), shard.WithWriteCache(useCache), shard.WithWriteCacheOptions(