From 04cf0ca074008f9d36f10f91ec5f559040c17e11 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 4 May 2017 13:50:26 -0700 Subject: [PATCH] cls/rgw: minor changes Signed-off-by: Yehuda Sadeh --- src/cls/rgw/cls_rgw.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index bc1b337736f..e8d59424288 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -3555,10 +3555,10 @@ static int rgw_reshard_list(cls_method_context_t hctx, bufferlist *in, bufferlis for (it = vals.begin(); it != vals.end(); ++it) { iter = it->second.begin(); try { - ::decode(entry, iter); + ::decode(entry, iter); } catch (buffer::error& err) { - CLS_LOG(1, "ERROR: rgw_cls_rehard_list(): failed to decode entry\n"); - return -EIO; + CLS_LOG(1, "ERROR: rgw_cls_rehard_list(): failed to decode entry\n"); + return -EIO; } op_ret.entries.push_back(entry); } @@ -3591,7 +3591,7 @@ static int rgw_reshard_get(cls_method_context_t hctx, bufferlist *in, bufferlis ::decode(entry, iter); } catch (buffer::error& err) { CLS_LOG(0, "ERROR: rgw_cls_reshard_get : failed to decode entry %s\n",err.what()); - return -EINVAL; + return -EIO; } cls_rgw_reshard_get_ret op_ret; -- 2.39.5