From e9e311ea8ea8c9bc042db0f7c7cb9a53e2666c02 Mon Sep 17 00:00:00 2001 From: zhangweibing Date: Wed, 31 Aug 2016 11:28:44 +0800 Subject: [PATCH] rgw/rgw_lc.cc: fix sleep time according to the error message Signed-off-by: Weibing Zhang --- src/rgw/rgw_lc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5