]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
LFNIndex::list_objects: lfn_translate does not set errno
authorSamuel Just <sjust@redhat.com>
Fri, 8 Apr 2016 17:45:45 +0000 (10:45 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 8 Apr 2016 21:57:16 +0000 (14:57 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/os/filestore/LFNIndex.cc

index bcd22ffa20d56e109b9eefe681e499462eff6821..52ef46b62b98f073dd2453ea9e1f5b85d955edd4 100644 (file)
@@ -430,7 +430,6 @@ int LFNIndex::list_objects(const vector<string> &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);