]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: fix typo
authorSage Weil <sage@inktank.com>
Tue, 11 Mar 2014 19:14:49 +0000 (12:14 -0700)
committerSage Weil <sage@inktank.com>
Tue, 11 Mar 2014 19:15:38 +0000 (12:15 -0700)
This is the object count, not the dirty object count.  Broken by
00bf3b56743830a4a9c5d6765946a4e68f530c57.

Reported-by: Greg Farnum <greg@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 3eec7c40d1487f4e73b0794e04785f681230892d..7f013643e2457ef8c1f5151837cbabd1160b0154 100644 (file)
@@ -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