]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: remove dup service_should_trim() implementation
authorSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 04:40:36 +0000 (21:40 -0700)
committerSage Weil <sage@inktank.com>
Tue, 9 Jul 2013 04:40:36 +0000 (21:40 -0700)
This matches the parent.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h

index d6426e4e49323e45436765c0a869e1d7613d2a11..541aac647f3a994cd1d5eb334096fc33fcc5c319 100644 (file)
@@ -560,12 +560,6 @@ void OSDMonitor::encode_trim_extra(MonitorDBStore::Transaction *tx, version_t fi
   put_version_full(tx, first, bl);
 }
 
-bool OSDMonitor::service_should_trim()
-{
-  update_trim();
-  return (get_trim_to() > 0);
-}
-
 // -------------
 
 bool OSDMonitor::preprocess_query(PaxosServiceMessage *m)
index 5f558719e32bca8586a7aa5a601a5ce8414edc58..daf2e17dac1253276e279dcb2a922489fd906ff9 100644 (file)
@@ -184,7 +184,6 @@ private:
   bool should_propose(double &delay);
 
   void update_trim();
-  bool service_should_trim();
 
   bool can_mark_down(int o);
   bool can_mark_up(int o);