]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: RGWDataSyncControlCR retries on all errors
authorCasey Bodley <cbodley@redhat.com>
Mon, 9 Oct 2017 18:46:47 +0000 (14:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 11 Oct 2017 20:14:04 +0000 (16:14 -0400)
similar to RGWMetaSyncShardControlCR, we don't want to exit and
stop the data sync processor thread on failures. we want to keep
retrying with backoff

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc

index 0f4eb3fd3b022140e931351f1ec770a59ed241f6..83b3b0b2d653057e28cf5357ea88423864a4f8ba 100644 (file)
@@ -1686,9 +1686,10 @@ class RGWDataSyncControlCR : public RGWBackoffControlCR
 
   RGWSyncTraceNodeRef tn;
 
+  static constexpr bool exit_on_error = false; // retry on all errors
 public:
   RGWDataSyncControlCR(RGWDataSyncEnv *_sync_env, uint32_t _num_shards,
-                       RGWSyncTraceNodeRef& _tn_parent) : RGWBackoffControlCR(_sync_env->cct, true),
+                       RGWSyncTraceNodeRef& _tn_parent) : RGWBackoffControlCR(_sync_env->cct, exit_on_error),
                                                           sync_env(_sync_env), num_shards(_num_shards) {
     tn = sync_env->sync_tracer->add_node(new RGWSyncTraceNode(sync_env->cct,
                                          sync_env->sync_tracer,