]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FuseStore: return error if encounter collection_list error
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 28 Jan 2016 09:55:29 +0000 (17:55 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jan 2016 02:26:15 +0000 (10:26 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/FuseStore.cc

index f55f1ee80f787852509c9420359dbf9e6b1af929..b23b59d9b907b8eca884c94285c55b7fc096a066 100644 (file)
@@ -439,7 +439,7 @@ static int os_readdir(const char *path,
        int r = fs->store->collection_list(
          cid, next, last, true, 1000, &ls, &next);
        if (r < 0)
-         break;
+         return r;
        for (auto p : ls) {
          if (skip) {
            --skip;