From: Samuel Just Date: Fri, 8 Apr 2016 17:45:45 +0000 (-0700) Subject: LFNIndex::list_objects: lfn_translate does not set errno X-Git-Tag: v10.1.2~7^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e4916f68ddcacfb23bd0dd83de9f09807763eb38;p=ceph.git LFNIndex::list_objects: lfn_translate does not set errno Signed-off-by: Samuel Just --- diff --git a/src/os/filestore/LFNIndex.cc b/src/os/filestore/LFNIndex.cc index bcd22ffa20d5..52ef46b62b98 100644 --- a/src/os/filestore/LFNIndex.cc +++ b/src/os/filestore/LFNIndex.cc @@ -430,7 +430,6 @@ int LFNIndex::list_objects(const vector &to_list, int max_objs, if (lfn_is_object(short_name)) { r = lfn_translate(to_list, short_name, &obj); if (r < 0) { - r = -errno; goto cleanup; } else if (r > 0) { string long_name = lfn_generate_object_name(obj);