From: Sage Weil Date: Tue, 11 Mar 2014 19:14:49 +0000 (-0700) Subject: osd/ReplicatedPG: fix typo X-Git-Tag: v0.78~48 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24774a81657b8e4d6b096f0445b8865846c60fed;p=ceph.git osd/ReplicatedPG: fix typo This is the object count, not the dirty object count. Broken by 00bf3b56743830a4a9c5d6765946a4e68f530c57. Reported-by: Greg Farnum Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 3eec7c40d148..7f013643e245 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -10825,7 +10825,7 @@ void ReplicatedPG::agent_choose_mode() // adjust (effective) user objects down based on the (max) number // of HitSet objects, which should not count toward our total since // they cannot be flushed. - uint64_t num_user_objects = info.stats.stats.sum.num_objects_dirty; + uint64_t num_user_objects = info.stats.stats.sum.num_objects; if (num_user_objects > pool.info.hit_set_count) num_user_objects -= pool.info.hit_set_count; else