From bb814758f64fd556cfe959b851eebfee111d4ff8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 1 Apr 2011 15:09:46 -0700 Subject: [PATCH] journaler: fix warning warning: osdc/Journaler.cc:682: comparison between signed and unsigned integer expressions Signed-off-by: Sage Weil --- src/osdc/Journaler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdc/Journaler.cc b/src/osdc/Journaler.cc index da458b83d8859..6a48dce997462 100644 --- a/src/osdc/Journaler.cc +++ b/src/osdc/Journaler.cc @@ -679,7 +679,7 @@ void Journaler::_issue_read(int64_t len) uint64_t e = requested_pos + period; e -= e % period; uint64_t l = e - requested_pos; - if (l > len) + if (l > (uint64_t)len) l = len; C_Read *c = new C_Read(this, requested_pos); filer.read(ino, &layout, CEPH_NOSNAP, requested_pos, l, &c->bl, 0, c); -- 2.47.3