Skip to content

Commit

Permalink
fix: Avoid multiple write responses (minio#16894)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker committed Mar 27, 2023
1 parent 4c5edac commit 66ff17e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/bucket-replication-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ func (api objectAPIHandlers) ResetBucketReplicationStartHandler(w http.ResponseW
Bucket: bucket,
Err: fmt.Errorf("invalid query parameter older-than %s for %s : %w", durationStr, bucket, err),
}), r.URL)
return
}
}
resetBeforeDate := UTCNow().AddDate(0, 0, -1*int(days/24))
Expand Down Expand Up @@ -347,6 +348,7 @@ func (api objectAPIHandlers) ResetBucketReplicationStartHandler(w http.ResponseW
default:
writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
}
return
}
targets, err := globalBucketTargetSys.ListBucketTargets(ctx, bucket)
if err != nil {
Expand Down

0 comments on commit 66ff17e

Please sign in to comment.