From: Bingyin Zhang Date: Mon, 18 Dec 2017 10:02:49 +0000 (+0800) Subject: rgw: adjust log format for lifecycle X-Git-Tag: v13.0.2~740^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19576%2Fhead;p=ceph.git rgw: adjust log format for lifecycle Signed-off-by: Bingyin Zhang --- diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 6e03c42a57c..33dc88d8dfd 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -237,7 +237,7 @@ int RGWLC::bucket_lc_prepare(int index) pair entry(iter->first, lc_uninitial); ret = cls_rgw_lc_set_entry(store->lc_pool_ctx, obj_names[index], entry); if (ret < 0) { - dout(0) << "RGWLC::bucket_lc_prepare() failed to set entry " << obj_names[index] << dendl; + dout(0) << "RGWLC::bucket_lc_prepare() failed to set entry on " << obj_names[index] << dendl; break; } marker = iter->first; @@ -588,7 +588,7 @@ int RGWLC::bucket_lc_post(int index, int max_lock_sec, pair& entry do { 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; + dout(0) << "RGWLC::bucket_lc_post() failed to acquire lock on " << obj_names[index] << ", sleep 5, try again" << dendl; sleep(5); continue; } @@ -609,7 +609,7 @@ int RGWLC::bucket_lc_post(int index, int max_lock_sec, pair& entry ret = cls_rgw_lc_set_entry(store->lc_pool_ctx, obj_names[index], entry); if (ret < 0) { - dout(0) << "RGWLC::process() failed to set entry " << obj_names[index] << dendl; + dout(0) << "RGWLC::process() failed to set entry on " << obj_names[index] << dendl; } clean: l.unlock(&store->lc_pool_ctx, obj_names[index]); @@ -672,7 +672,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; + dout(0) << "RGWLC::process() failed to acquire lock on " << obj_names[index] << ", sleep 5, try again" << dendl; sleep(5); continue; } diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index a0baf1df871..e35ff128926 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -4920,17 +4920,17 @@ void RGWPutLC::execute() do { op_ret = l.lock_exclusive(ctx, oid); if (op_ret == -EBUSY) { - dout(0) << "RGWLC::RGWPutLC() failed to acquire lock on, sleep 5, try again" << oid << dendl; + dout(0) << "RGWLC::RGWPutLC() failed to acquire lock on " << oid << ", sleep 5, try again" << dendl; sleep(5); continue; } if (op_ret < 0) { - dout(0) << "RGWLC::RGWPutLC() failed to acquire lock " << oid << op_ret << dendl; + dout(0) << "RGWLC::RGWPutLC() failed to acquire lock on " << oid << ", ret=" << op_ret << dendl; break; } op_ret = cls_rgw_lc_set_entry(*ctx, oid, entry); if (op_ret < 0) { - dout(0) << "RGWLC::RGWPutLC() failed to set entry " << oid << op_ret << dendl; + dout(0) << "RGWLC::RGWPutLC() failed to set entry on " << oid << ", ret=" << op_ret << dendl; } break; }while(1); @@ -4970,17 +4970,17 @@ void RGWDeleteLC::execute() do { op_ret = l.lock_exclusive(ctx, oid); if (op_ret == -EBUSY) { - dout(0) << "RGWLC::RGWDeleteLC() failed to acquire lock on, sleep 5, try again" << oid << dendl; + dout(0) << "RGWLC::RGWDeleteLC() failed to acquire lock on " << oid << ", sleep 5, try again" << dendl; sleep(5); continue; } if (op_ret < 0) { - dout(0) << "RGWLC::RGWDeleteLC() failed to acquire lock " << oid << op_ret << dendl; + dout(0) << "RGWLC::RGWDeleteLC() failed to acquire lock on " << oid << ", ret=" << op_ret << dendl; break; } op_ret = cls_rgw_lc_rm_entry(*ctx, oid, entry); if (op_ret < 0) { - dout(0) << "RGWLC::RGWDeleteLC() failed to set entry " << oid << op_ret << dendl; + dout(0) << "RGWLC::RGWDeleteLC() failed to rm entry on " << oid << ", ret=" << op_ret << dendl; } break; }while(1);