]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fix getxattr
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 20 Apr 2011 20:51:59 +0000 (13:51 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 20 Apr 2011 20:51:59 +0000 (13:51 -0700)
src/os/FileStore.cc

index 3a4878928d3c5fbc4bdbe16f44d51b83ce483c2e..479fa4d67f11164b6d17074e0200f99c77170a63 100644 (file)
@@ -265,6 +265,8 @@ int lfn_get(const char *pathname, char *short_fn, int len, const char **long_fn,
     default:
       break;
     }
+    if (r < 0)
+      break;
     i++;
   }