mirror of
https://github.com/ceph/ceph
synced 2025-01-09 20:52:09 +00:00
Merge pull request #31150 from zhangsw/cleanup-rgw-reshard-last_run
rgw: remove unused 'last_run' in reshard thread entry
This commit is contained in:
commit
17d1d4e61f
@ -1138,14 +1138,9 @@ void RGWReshard::stop_processor()
|
||||
}
|
||||
|
||||
void *RGWReshard::ReshardWorker::entry() {
|
||||
utime_t last_run;
|
||||
do {
|
||||
utime_t start = ceph_clock_now();
|
||||
if (reshard->process_all_logshards()) {
|
||||
/* All shards have been processed properly. Next time we can start
|
||||
* from this moment. */
|
||||
last_run = start;
|
||||
}
|
||||
reshard->process_all_logshards();
|
||||
|
||||
if (reshard->going_down())
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user