From: David Zafman Date: Mon, 2 Dec 2019 23:25:00 +0000 (-0800) Subject: osd: Use physical ratio for nearfull (doesn't include backfill resserve) X-Git-Tag: v15.1.0~576^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=146b7f5bc356d39292ed4def5f00f0a79a46a75f;p=ceph.git osd: Use physical ratio for nearfull (doesn't include backfill resserve) Fixes: https://tracker.ceph.com/issues/42346 Signed-off-by: David Zafman --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 35709c275231..99d2a26f53a0 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -758,7 +758,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;