]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: return returned ret code
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 27 Sep 2012 22:33:28 +0000 (15:33 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 8 Oct 2012 22:15:04 +0000 (15:15 -0700)
Wasn't setting the ret code. A coverity issue.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/cls/rgw/cls_rgw.cc

index c035be030e42d5e5487f7025e05df0c4581fdc73..835521d941e100d1cf55e7ad9f36001705be5170 100644 (file)
@@ -297,7 +297,7 @@ int rgw_bucket_prepare_op(cls_method_context_t hctx, bufferlist *in, bufferlist
   // write out new key to disk
   bufferlist info_bl;
   ::encode(entry, info_bl);
-  cls_cxx_map_set_val(hctx, op.name, &info_bl);
+  rc = cls_cxx_map_set_val(hctx, op.name, &info_bl);
   return rc;
 }