Skip to content

Commit

Permalink
Merge pull request ceph#11963 from zhangsw/fix-rgw-lifecycle-bug
Browse files Browse the repository at this point in the history
rgw: LCWorker's worktime is not the same as config rgw_lifecycle_work_time.

Reviewed-by: Daniel Gryniewicz <[email protected]>
  • Loading branch information
cbodley authored Apr 4, 2017
2 parents b4c0fc7 + a491710 commit 1e8b763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_lc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1e8b763

Please sign in to comment.