Skip to content

Commit

Permalink
rgw: Ignoring the returned error
Browse files Browse the repository at this point in the history
** 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 <[email protected]>
  • Loading branch information
amitkuma committed Sep 22, 2017
1 parent 38751c7 commit b47e0e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rgw/rgw_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit b47e0e4

Please sign in to comment.