From e4916f68ddcacfb23bd0dd83de9f09807763eb38 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 8 Apr 2016 10:45:45 -0700 Subject: [PATCH] LFNIndex::list_objects: lfn_translate does not set errno Signed-off-by: Samuel Just --- src/os/filestore/LFNIndex.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/os/filestore/LFNIndex.cc b/src/os/filestore/LFNIndex.cc index bcd22ffa20d..52ef46b62b9 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); -- 2.47.3