From ef1df97b5a54cb6f37d3a5f048df5c7d1ec9bf68 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 8 Dec 2016 15:50:24 -0800 Subject: [PATCH] osd: fix signed/unsigned comparison warning Signed-off-by: Greg Farnum --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3