]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/rgw_lc.cc: fix sleep time according to the error message
authorzhangweibing <zhangweibing@unitedstack.com>
Wed, 31 Aug 2016 03:28:44 +0000 (11:28 +0800)
committerzhangweibing <zhangweibing@unitedstack.com>
Wed, 31 Aug 2016 03:28:44 +0000 (11:28 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/rgw/rgw_lc.cc

index 8876f6330ce476c6390ebab02429fe26838a1706..db889f851c3407f254f9a0de4d71568ad8dfcf70 100644 (file)
@@ -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)