From 87c584f94c45aa4abc12d313c3a4388f52fb758b Mon Sep 17 00:00:00 2001 From: zhangshaowen Date: Fri, 25 Oct 2019 16:12:55 +0800 Subject: [PATCH] rgw: remove unused 'last_run' in reshard thread entry Signed-off-by: zhangshaowen --- src/rgw/rgw_reshard.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc index 4c05001199d..a861ff993f3 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;