]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osdmonitor: pool of objects beyond quota should be warn, when the pool bytes... 9085/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Thu, 12 May 2016 01:32:04 +0000 (09:32 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Thu, 12 May 2016 01:32:04 +0000 (09:32 +0800)
pool of objects beyond quota should be warn, when the pool bytes beyond set quotas

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mon/OSDMonitor.cc

index 42c58a0111adcdeac39f947f4e3b57dbb5645a10..8f5a2ee460545ea31b7c5df899afb2fca07e3612 100644 (file)
@@ -4065,13 +4065,12 @@ bool OSDMonitor::update_pools_status()
         mon->clog->warn() << "pool '" << pool_name << "' is full"
                          << " (reached quota's max_bytes: "
                          << si_t(pool.quota_max_bytes) << ")";
-      } else if (pool.quota_max_objects > 0 &&
+      }
+      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 << ")";
-      } else {
-        assert(0 == "we shouldn't reach this");
       }
       update_pool_flags(it->first, pool.get_flags() | pg_pool_t::FLAG_FULL);
       ret = true;