forked from TrueCloudLab/frostfs-node
[#898] ape: Fix bug with creating type bucket in chainbase
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
4a4c790ec1
commit
5d982976fd
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ func getTargetBucketCreateIfEmpty(tx *bbolt.Tx, name chain.Name, target policyen
|
||||||
typeBucket := nbucket.Bucket([]byte{byte(target.Type)})
|
typeBucket := nbucket.Bucket([]byte{byte(target.Type)})
|
||||||
if typeBucket == nil {
|
if typeBucket == nil {
|
||||||
var err error
|
var err error
|
||||||
typeBucket, err = cbucket.CreateBucket([]byte{byte(target.Type)})
|
typeBucket, err = nbucket.CreateBucket([]byte{byte(target.Type)})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("could not create a bucket for the target type '%c': %w", target.Type, err)
|
return nil, fmt.Errorf("could not create a bucket for the target type '%c': %w", target.Type, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue