Fix S3 implementation of frozen domain check.

This commit is contained in:
Catherine
2025-12-03 04:52:41 +00:00
parent e226f51dd4
commit 95c4f1041d
+1 -1
View File
@@ -518,7 +518,7 @@ func domainFrozenObjectName(domain string) string {
}
func (s3 *S3Backend) checkDomainFrozen(ctx context.Context, domain string) error {
_, err := s3.client.GetObject(ctx, s3.bucket, domainFrozenObjectName(domain),
_, err := s3.client.StatObject(ctx, s3.bucket, domainFrozenObjectName(domain),
minio.GetObjectOptions{})
if err == nil {
return ErrDomainFrozen