]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/lc: if the buckets last lc processing time is less than start time of current...
authorkchheda3 <kchheda3@bloomberg.net>
Thu, 18 Sep 2025 20:01:50 +0000 (16:01 -0400)
committerkchheda3 <kchheda3@bloomberg.net>
Fri, 19 Sep 2025 20:06:44 +0000 (16:06 -0400)
commit541d13a6305bac9255348eeeef61d0c5096bf5bf
tree073e82fd00d19184d0ee8652709846bba210e62e
parent202275ad938abc9ec5a7ca47a73df7afaade521b
rgw/lc: if the buckets last lc processing time is less than start time of current LC session, then continue processing bucket for lC even if the status is not in initalized state.

Currently the logic inside expired_session() would consider an LC session valid for almost 2-3 days, so for some bucket where the lc processing POST status update fails, the next lc session would skip the bucket because the expired_session() would return false as it multiplies the num_seconds_day *2. Instead of hardcoding the logic to 2 days, store the start time for each lc session and then compare the bucket update time with lc_start time, if bucket process time is less then current lc start time, then bucket can be processed as previous session is already expired.
Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
src/rgw/rgw_lc.cc
src/rgw/rgw_lc.h