]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused 'last_run' in reshard thread entry 31150/head
authorzhangshaowen <zhangshaowen@cmss.chinamobile.com>
Fri, 25 Oct 2019 08:12:55 +0000 (16:12 +0800)
committerzhangshaowen <zhangshaowen@cmss.chinamobile.com>
Fri, 25 Oct 2019 08:16:33 +0000 (16:16 +0800)
Signed-off-by: zhangshaowen <zhangshaowen@cmss.chinamobile.com>
src/rgw/rgw_reshard.cc

index 4c05001199d7138d04d648d5f52eed7acb1f4edc..a861ff993f36ceda970a8c3959dd5219d5ef1f33 100644 (file)
@@ -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;