]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw: minor changes
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 4 May 2017 20:50:26 +0000 (13:50 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:17:41 +0000 (13:17 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/cls/rgw/cls_rgw.cc

index bc1b337736ffd8003f28a877a26d7f263b80cb1c..e8d59424288b267bc4b8777603984bb50741362a 100644 (file)
@@ -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;