Currently lc does not get days 0 for transition, but by aws s3 spec it should
Fixes: https://tracker.ceph.com/issues/38389
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
auto mtime = get_effective_mtime(oc);
bool is_expired;
- if (transition.days <= 0) {
+ if (transition.days < 0) {
if (transition.date == boost::none) {
ldout(oc.cct, 20) << __func__ << "(): key=" << o.key << ": no transition day/date set in rule, skipping" << dendl;
return false;
bool valid() const {
if (!days.empty() && !date.empty()) {
return false;
- } else if (!days.empty() && get_days() <=0) {
+ } else if (!days.empty() && get_days() < 0) {
return false;
}
//We've checked date in xml parsing