From 3fc035f1fb0dbec9e5b602d92c39626f797f265b Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Wed, 4 Dec 2024 10:13:42 +0700 Subject: [PATCH] save --- erigon-lib/kv/mdbx/kv_mdbx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erigon-lib/kv/mdbx/kv_mdbx.go b/erigon-lib/kv/mdbx/kv_mdbx.go index 5c602bca8a5..ffd257755fa 100644 --- a/erigon-lib/kv/mdbx/kv_mdbx.go +++ b/erigon-lib/kv/mdbx/kv_mdbx.go @@ -462,7 +462,7 @@ func (db *MdbxKV) CHandle() unsafe.Pointer { // otherwise re-try by RW transaction // it allow open DB from another process - even if main process holding long RW transaction func (db *MdbxKV) openDBIs(ctx context.Context, buckets []string) error { - var nonDeprecatedBuckets []string + nonDeprecatedBuckets := make([]string, 0, len(buckets)) for _, name := range buckets { if db.buckets[name].IsDeprecated { continue