forked from TrueCloudLab/frostfs-s3-gw
[#368] Unify cache value deletion
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
e7b742df4d
commit
02f4524d67
3 changed files with 7 additions and 7 deletions
|
@ -890,9 +890,9 @@ func (n *layer) DeleteBucket(ctx context.Context, p *DeleteBucketParams) error {
|
|||
return errors.GetAPIError(errors.ErrBucketNotEmpty)
|
||||
}
|
||||
|
||||
n.bucketCache.Delete(bucketInfo.Name)
|
||||
if err = n.deleteContainer(ctx, bucketInfo.CID); err != nil {
|
||||
return err
|
||||
}
|
||||
n.bucketCache.Delete(bucketInfo.Name)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue