From: amitkuma Date: Fri, 22 Sep 2017 12:16:47 +0000 (+0530) Subject: rgw: Ignoring the returned error X-Git-Tag: v13.0.1~662^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b47e0e448ab410a34fd34b51f3984e539b8f539a;p=ceph.git rgw: Ignoring the returned error ** 1396191 Unused value CID 1396191 (#1 of 1): Unused value (UNUSED_VALUE) returned_value: Assigning value from check_obj_tail_locator_underscore (bucket_info, obj, key, fix, f) to ret here, but that stored value is overwritten before it can be used. Signed-off-by: Amit Kumar --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 2634af232943..e3321f738ded 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1483,6 +1483,10 @@ int do_check_object_locator(const string& tenant_name, const string& bucket_name if (ret >= 0) { ret = check_obj_tail_locator_underscore(bucket_info, obj, key, fix, f); + if (ret < 0) { + cerr << "ERROR: check_obj_tail_locator_underscore(): " << cpp_strerror(-ret) << std::endl; + return -ret; + } } } }