Skip to content

Commit 72b9053

Browse files
authored
Enable --expired-object-all-versions (#1927)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
1 parent c6d47d8 commit 72b9053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/lifecycle/lifecycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func (e Expiration) IsDeleteMarkerExpirationEnabled() bool {
402402

403403
// IsNull returns true if both date and days fields are null
404404
func (e Expiration) IsNull() bool {
405-
return e.IsDaysNull() && e.IsDateNull() && !e.IsDeleteMarkerExpirationEnabled()
405+
return e.IsDaysNull() && e.IsDateNull() && !e.IsDeleteMarkerExpirationEnabled() && !e.DeleteAll.IsEnabled()
406406
}
407407

408408
// MarshalXML is expiration is non null

0 commit comments

Comments
 (0)