Fix a bug preventing new manifests from being committed to S3.

This commit is contained in:
Catherine
2025-12-04 17:50:28 +00:00
parent f59830ae20
commit 5f1ce5d334

View File

@@ -553,6 +553,10 @@ func (s3 *S3Backend) HasAtomicCAS(ctx context.Context) bool {
func (s3 *S3Backend) checkManifestPrecondition(
ctx context.Context, name string, opts ModifyManifestOptions,
) error {
if opts.IfUnmodifiedSince.IsZero() && opts.IfMatch == "" {
return nil
}
stat, err := s3.client.StatObject(ctx, s3.bucket, manifestObjectName(name),
minio.GetObjectOptions{})
if err != nil {