]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Use physical ratio for nearfull (doesn't include backfill resserve) 32773/head
authorDavid Zafman <dzafman@redhat.com>
Mon, 2 Dec 2019 23:25:00 +0000 (15:25 -0800)
committerDavid Zafman <dzafman@redhat.com>
Wed, 22 Jan 2020 05:28:08 +0000 (05:28 +0000)
Fixes: https://tracker.ceph.com/issues/42346
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 146b7f5bc356d39292ed4def5f00f0a79a46a75f)

src/osd/OSD.cc

index 399f095f894319ebd052dafd65387aad559aea56..acf9b9d0c0432067d45db4d79a9c33c093462e30 100644 (file)
@@ -740,7 +740,7 @@ OSDService::s_names OSDService::recalc_full_state(float ratio, float pratio, str
     return FULL;
   } else if (ratio > backfillfull_ratio) {
     return BACKFILLFULL;
-  } else if (ratio > nearfull_ratio) {
+  } else if (pratio > nearfull_ratio) {
     return NEARFULL;
   }
    return NONE;