transition.days should be initialized to -1 by default to be able to
correctly process the LC rules which may have `Date` specified.
Fixes: https://tracker.ceph.com/issues/68288
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
int days;
boost::optional<ceph::real_time> date;
std::string storage_class;
- transition_action() : days(0) {}
+ transition_action() : days(-1) {}
void dump(Formatter *f) const {
if (!date) {
f->dump_int("days", days);