From: Sage Weil Date: Mon, 1 May 2017 23:15:28 +0000 (-0500) Subject: osd/OSDMap: upmap: only overfull when at least one PG over X-Git-Tag: v12.1.0~10^2~91^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dcb66c2c022d7d84bbd099d47ab45f2ee56df5b1;p=ceph.git osd/OSDMap: upmap: only overfull when at least one PG over If we are less than a full PG over the target, we are not overfull. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 278457dbcd7d..8ab0ebf27733 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -3480,7 +3480,7 @@ int OSDMap::calc_pg_upmaps( << dendl; osd_deviation[i.first] = deviation; deviation_osd.insert(make_pair(deviation, i.first)); - if (deviation > 0) + if (deviation >= 1.0) overfull.insert(i.first); }