summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_reshard.cc
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@users.noreply.github.com>2019-12-19 16:14:16 +0100
committerGitHub <noreply@github.com>2019-12-19 16:14:16 +0100
commit17d1d4e61f107580e4303b6e4ba9256cf2ca4b13 (patch)
tree2d41583fea2b40a807025b208bcbfe5b20d5e8f7 /src/rgw/rgw_reshard.cc
parentMerge PR #32339 into master (diff)
parentrgw: remove unused 'last_run' in reshard thread entry (diff)
downloadceph-17d1d4e61f107580e4303b6e4ba9256cf2ca4b13.tar.xz
ceph-17d1d4e61f107580e4303b6e4ba9256cf2ca4b13.zip
Merge pull request #31150 from zhangsw/cleanup-rgw-reshard-last_run
rgw: remove unused 'last_run' in reshard thread entry
Diffstat (limited to 'src/rgw/rgw_reshard.cc')
-rw-r--r--src/rgw/rgw_reshard.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc
index 67215fb06c8..83b362fdf10 100644
--- a/src/rgw/rgw_reshard.cc
+++ b/src/rgw/rgw_reshard.cc
@@ -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;