]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix signed/unsigned comparison warnings
authorKefu Chai <kchai@redhat.com>
Tue, 12 Jan 2016 04:59:55 +0000 (12:59 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 18 Jan 2016 04:31:30 +0000 (12:31 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueFS.cc

index d32d7d6f83f4575c0631a7733a3907a85b11205a..458204b5d3f5f31dbb287b0ba16c69d80e4a67cd 100644 (file)
@@ -706,7 +706,7 @@ int BlueFS::_read(
 
   int ret = 0;
   while (len > 0) {
-    int left;
+    size_t left;
     if (off < buf->bl_off || off >= buf->get_buf_end()) {
       buf->bl.clear();
       buf->bl_off = off & super.block_mask();