From b71a00966cea68074d8a04a027340d715f018bde Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 8 Jul 2013 21:40:36 -0700 Subject: [PATCH] mon/OSDMonitor: remove dup service_should_trim() implementation This matches the parent. Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 6 ------ src/mon/OSDMonitor.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index d6426e4e49323..541aac647f3a9 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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) diff --git a/src/mon/OSDMonitor.h b/src/mon/OSDMonitor.h index 5f558719e32bc..daf2e17dac125 100644 --- a/src/mon/OSDMonitor.h +++ b/src/mon/OSDMonitor.h @@ -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); -- 2.39.5