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