Skip to content

Commit a2b2eac

Browse files
committed
rgw/lc: Fix a bug in LCOpAction_Transition::check()
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 <[email protected]>
1 parent 4df972a commit a2b2eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_lc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ struct transition_action
469469
int days;
470470
boost::optional<ceph::real_time> date;
471471
std::string storage_class;
472-
transition_action() : days(0) {}
472+
transition_action() : days(-1) {}
473473
void dump(Formatter *f) const {
474474
if (!date) {
475475
f->dump_int("days", days);

0 commit comments

Comments
 (0)