From: zhangweibing Date: Wed, 31 Aug 2016 03:28:44 +0000 (+0800) Subject: rgw/rgw_lc.cc: fix sleep time according to the error message X-Git-Tag: v11.0.1~314^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9e311ea8ea8c9bc042db0f7c7cb9a53e2666c02;p=ceph.git rgw/rgw_lc.cc: fix sleep time according to the error message Signed-off-by: Weibing Zhang --- diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 8876f6330ce..db889f851c3 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -328,7 +328,7 @@ int RGWLC::bucket_lc_post(int index, int max_lock_sec, cls_rgw_lc_obj_head& head int ret = l.lock_exclusive(&store->lc_pool_ctx, obj_names[index]); if (ret == -EBUSY) { /* already locked by another lc processor */ dout(0) << "RGWLC::bucket_lc_post() failed to acquire lock on, sleep 5, try again" << obj_names[index] << dendl; - sleep(10); + sleep(5); continue; } if (ret < 0) @@ -408,7 +408,7 @@ int RGWLC::process(int index, int max_lock_secs) int ret = l.lock_exclusive(&store->lc_pool_ctx, obj_names[index]); if (ret == -EBUSY) { /* already locked by another lc processor */ dout(0) << "RGWLC::process() failed to acquire lock on, sleep 5, try again" << obj_names[index] << dendl; - sleep(10); + sleep(5); continue; } if (ret < 0)