From: zhangshaowen Date: Fri, 25 Oct 2019 08:12:55 +0000 (+0800) Subject: rgw: remove unused 'last_run' in reshard thread entry X-Git-Tag: v15.1.0~433^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87c584f94c45aa4abc12d313c3a4388f52fb758b;p=ceph.git rgw: remove unused 'last_run' in reshard thread entry Signed-off-by: zhangshaowen --- diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc index 4c05001199d71..a861ff993f36c 100644 --- a/src/rgw/rgw_reshard.cc +++ b/src/rgw/rgw_reshard.cc @@ -1085,14 +1085,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;