From: Greg Farnum Date: Thu, 8 Dec 2016 23:50:24 +0000 (-0800) Subject: osd: fix signed/unsigned comparison warning X-Git-Tag: v11.1.0~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef1df97b5a54cb6f37d3a5f048df5c7d1ec9bf68;p=ceph.git osd: fix signed/unsigned comparison warning Signed-off-by: Greg Farnum --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 6daf383cbc25..1d2857b84cc1 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4168,7 +4168,7 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle) * left end of the range if we are a tier because they may legitimately * not exist (see _scrub). */ - unsigned min = MAX(3, cct->_conf->osd_scrub_chunk_min); + int min = MAX(3, cct->_conf->osd_scrub_chunk_min); hobject_t start = scrubber.start; hobject_t candidate_end; vector objects;