cls_rgw: return returned ret code

Wasn't setting the ret code. A coverity issue.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2012-09-27 15:33:28 -07:00
parent 58ad3bf3be
commit 8731d0d155

View 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;
}