]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: upmap: only overfull when at least one PG over
authorSage Weil <sage@redhat.com>
Mon, 1 May 2017 23:15:28 +0000 (18:15 -0500)
committerSage Weil <sage@redhat.com>
Mon, 1 May 2017 23:15:28 +0000 (18:15 -0500)
If we are less than a full PG over the target, we are not overfull.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSDMap.cc

index 278457dbcd7d4b844b032cf2b75f1cbd1d0fb9c0..8ab0ebf2773357d2d224e80b508348dfc38a9ab0 100644 (file)
@@ -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);
     }