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:
Casey Bodley 2019-12-19 10:14:16 -05:00 committed by GitHub
commit 17d1d4e61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;