Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate search v2 #1082

Merged
merged 13 commits into from
Feb 21, 2025
12 changes: 6 additions & 6 deletions api/layer/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func (n *layer) deleteObject(ctx context.Context, bkt *data.BucketInfo, settings
}

for _, version := range versions {
if obj.Error = n.objectDelete(ctx, bkt, version.GetID()); obj.Error != nil {
if obj.Error = n.objectDelete(ctx, bkt, version.ID); obj.Error != nil {
return obj
}
}
Expand Down Expand Up @@ -729,7 +729,7 @@ func (n *layer) deleteObject(ctx context.Context, bkt *data.BucketInfo, settings
}

for _, version := range versions {
if obj.Error = n.objectDelete(ctx, bkt, version.GetID()); obj.Error != nil {
if obj.Error = n.objectDelete(ctx, bkt, version.ID); obj.Error != nil {
return obj
}
}
Expand All @@ -750,8 +750,8 @@ func (n *layer) deleteObject(ctx context.Context, bkt *data.BucketInfo, settings

if obj.VersionID == "" {
for _, ver := range versions {
if obj.Error = n.objectDelete(ctx, bkt, ver.GetID()); obj.Error != nil {
n.log.Error("could not delete object", zap.Error(obj.Error), zap.Stringer("oid", ver.GetID()))
if obj.Error = n.objectDelete(ctx, bkt, ver.ID); obj.Error != nil {
n.log.Error("could not delete object", zap.Error(obj.Error), zap.Stringer("oid", ver.ID))
if isErrObjectAlreadyRemoved(obj.Error) {
obj.Error = nil
continue
Expand All @@ -762,8 +762,8 @@ func (n *layer) deleteObject(ctx context.Context, bkt *data.BucketInfo, settings
}
} else {
for _, ver := range versions {
if ver.GetID().EncodeToString() == obj.VersionID {
if obj.Error = n.objectDelete(ctx, bkt, ver.GetID()); obj.Error != nil {
if ver.ID.EncodeToString() == obj.VersionID {
if obj.Error = n.objectDelete(ctx, bkt, ver.ID); obj.Error != nil {
return obj
}

Expand Down
1 change: 0 additions & 1 deletion api/layer/multipart_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@ func (n *layer) CompleteMultipartUpload(ctx context.Context, p *CompleteMultipar
prm := PrmObjectCreate{
Container: p.Info.Bkt.CID,
Creator: p.Info.Bkt.Owner,
Filepath: p.Info.Key,
CreationTime: TimeNow(ctx),
CopiesNumber: multipartInfo.CopiesNumber,
Multipart: &Multipart{
Expand Down
Loading