]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Ignoring the returned error 17907/head
authoramitkuma <amitkuma@redhat.com>
Fri, 22 Sep 2017 12:16:47 +0000 (17:46 +0530)
committeramitkuma <amitkuma@redhat.com>
Fri, 22 Sep 2017 12:16:47 +0000 (17:46 +0530)
** 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 <amitkuma@redhat.com>
src/rgw/rgw_admin.cc

index 2634af232943e95d07ea71ddfbec058d290fd8c5..e3321f738dedaa1943f4d9b898d0e7ec776ac602 100644 (file)
@@ -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;
+          }
        }
       }
     }