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.
Fixes: https://tracker.ceph.com/issues/72572
Resolves: rhbz#
2401203
Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
(cherry picked from commit
541d13a6305bac9255348eeeef61d0c5096bf5bf)