]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: OSDMonitor: only output warn/err messages if quotas are set > 0
authorJoao Eduardo Luis <joao.luis@inktank.com>
Mon, 1 Apr 2013 16:14:15 +0000 (17:14 +0100)
committerSage Weil <sage@inktank.com>
Mon, 1 Apr 2013 16:21:00 +0000 (09:21 -0700)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/OSDMonitor.cc

index 3acfee89b00bcdb21a3e77e2629a724ae00f4b6d..b76511cb96354fbd77d6325b2d43fd93d929ef9f 100644 (file)
@@ -2241,11 +2241,13 @@ bool OSDMonitor::update_pools_status()
       if (!pool_is_full)
        continue;
 
-      if ((uint64_t)sum.num_bytes >= pool.quota_max_bytes) {
+      if (pool.quota_max_bytes > 0 &&
+          (uint64_t)sum.num_bytes >= pool.quota_max_bytes) {
         mon->clog.warn() << "pool '" << pool_name << "' is full"
                          << " (reached quota's max_bytes: "
                          << si_t(pool.quota_max_bytes) << ")";
-      } else if ((uint64_t)sum.num_objects >= pool.quota_max_objects) {
+      } else if (pool.quota_max_objects > 0 &&
+                (uint64_t)sum.num_objects >= pool.quota_max_objects) {
         mon->clog.warn() << "pool '" << pool_name << "' is full"
                          << " (reached quota's max_objects: "
                          << pool.quota_max_objects << ")";