mirror of
https://github.com/ceph/ceph
synced 2025-01-31 15:32:38 +00:00
Merge pull request #11963 from zhangsw/fix-rgw-lifecycle-bug
rgw: LCWorker's worktime is not the same as config rgw_lifecycle_work_time. Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
This commit is contained in:
commit
1e8b763443
@ -638,7 +638,7 @@ bool RGWLC::LCWorker::should_work(utime_t& now)
|
||||
if (cct->_conf->rgw_lc_debug_interval > 0) {
|
||||
/* We're debugging, so say we can run */
|
||||
return true;
|
||||
} else if ((bdt.tm_hour*60 + bdt.tm_min >= start_hour*60 + start_minute) ||
|
||||
} else if ((bdt.tm_hour*60 + bdt.tm_min >= start_hour*60 + start_minute) &&
|
||||
(bdt.tm_hour*60 + bdt.tm_min <= end_hour*60 + end_minute)) {
|
||||
return true;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user