]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: replace reshard blocking sleep with interruptible condition wait
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 18 May 2017 18:51:21 +0000 (11:51 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:18:00 +0000 (13:18 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_reshard.cc

index faa15080f2d7c74d1868fd5f3cb0e309fcc8a5e8..a80291d09d101846e5ef9d2b02f1e52ff4110929 100644 (file)
@@ -243,7 +243,7 @@ int RGWBucketReshard::set_resharding_status(const string& new_instance_id, int32
 int RGWBucketReshard::clear_resharding()
 {
   cls_rgw_bucket_instance_entry instance_entry;
-  
+
   int ret = store->bucket_set_reshard(bucket_info, instance_entry);
   if (ret < 0) {
     ldout(store->ctx(), 0) << "RGWReshard::" << __func__ << " ERROR: error setting bucket resharding flag on bucket index: "
@@ -710,7 +710,6 @@ int RGWReshardWait::block_while_resharding(RGWRados::BucketShard *bs, string *ne
   return -ERR_BUSY_RESHARDING;
 }
 
-
 int RGWReshard::process_single_logshard(int logshard_num)
 {
   string marker;
@@ -719,7 +718,7 @@ int RGWReshard::process_single_logshard(int logshard_num)
   CephContext *cct = store->ctx();
   int max_entries = 1000;
   int max_secs = 60;
-  
+
   rados::cls::lock::Lock l(reshard_lock_name);
 
   utime_t time(max_secs, 0);