From: xie xingguo Date: Thu, 28 Jan 2016 09:55:29 +0000 (+0800) Subject: FuseStore: return error if encounter collection_list error X-Git-Tag: v10.0.4~105^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6eb4aa4cc46d9e0b4d0b9e445e04f66c2dd77448;p=ceph-ci.git FuseStore: return error if encounter collection_list error Signed-off-by: xie xingguo --- diff --git a/src/os/FuseStore.cc b/src/os/FuseStore.cc index f55f1ee80f7..b23b59d9b90 100644 --- a/src/os/FuseStore.cc +++ b/src/os/FuseStore.cc @@ -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;