]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: fix signedness so we can handle errors from safe_pread
authorSage Weil <sage.weil@dreamhost.com>
Sun, 6 Mar 2011 04:41:55 +0000 (20:41 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 6 Mar 2011 04:41:55 +0000 (20:41 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/os/FileStore.cc

index acb76fc2674f5634953e1cef41bc7a16f4c97106..4603d4c31511b6edb755f445a51a398a6bb364c1 100644 (file)
@@ -2039,7 +2039,7 @@ int FileStore::stat(coll_t cid, const sobject_t& oid, struct stat *st)
 int FileStore::read(coll_t cid, const sobject_t& oid, 
                     uint64_t offset, size_t len, bufferlist& bl)
 {
-  size_t got;
+  int got;
   char fn[PATH_MAX];
   get_coname(cid, oid, fn, sizeof(fn));