diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index eadc46ff..9bcdf682 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -531,6 +531,8 @@ func initShardOptions(c *cfg) { shard.WithWriteCache(useCache), shard.WithWriteCacheOptions( blobstor.WithRootPath(writeCachePath), + blobstor.WithBlobovniczaShallowDepth(0), + blobstor.WithBlobovniczaShallowWidth(1), ), }) diff --git a/pkg/local_object_storage/shard/shard.go b/pkg/local_object_storage/shard/shard.go index d245d74a..5496a7bf 100644 --- a/pkg/local_object_storage/shard/shard.go +++ b/pkg/local_object_storage/shard/shard.go @@ -53,11 +53,7 @@ func New(opts ...Option) *Shard { if c.useWriteCache { writeCache = blobstor.New( - append(c.blobOpts, append( - c.writeCacheOpts, - blobstor.WithBlobovniczaShallowDepth(0), - blobstor.WithBlobovniczaShallowWidth(1))..., - )..., + append(c.blobOpts, c.writeCacheOpts...)..., ) } diff --git a/pkg/local_object_storage/shard/shard_test.go b/pkg/local_object_storage/shard/shard_test.go index 1e08c659..1fabd16a 100644 --- a/pkg/local_object_storage/shard/shard_test.go +++ b/pkg/local_object_storage/shard/shard_test.go @@ -42,6 +42,8 @@ func newShard(t testing.TB, enableWriteCache bool) *shard.Shard { shard.WithWriteCache(enableWriteCache), shard.WithWriteCacheOptions( blobstor.WithRootPath(path.Join(rootPath, "wcache")), + blobstor.WithBlobovniczaShallowWidth(1), + blobstor.WithBlobovniczaShallowDepth(0), ), }