blobstor: Fix delete without storage id #1208

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/blobstor_delete_without_storage_id into master 2024-06-27 10:44:37 +00:00
Showing only changes of commit 4951babd5f - Show all commits

View file

@ -6,8 +6,10 @@ import (
"time"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor/common"
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/util/logicerr"
"git.frostfs.info/TrueCloudLab/frostfs-observability/tracing"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client"
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
)
@ -42,6 +44,7 @@ func (b *BlobStor) Delete(ctx context.Context, prm common.DeletePrm) (common.Del
return res, err
}
}
return common.DeleteRes{}, logicerr.Wrap(new(apistatus.ObjectNotFound))
}
var st common.Storage