From d3aa0c1e033242fa68eb603fca6c4cf5f072a088 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 11 May 2011 11:56:34 -0700 Subject: [PATCH] PG: Replicas send Notifies in response to queries Replicas only send Infos during activate. Signed-off-by: Samuel Just --- src/osd/PG.cc | 7 ------- src/osd/PG.h | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 9e0205fc50f55..3f8dd0c387e7e 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4306,13 +4306,6 @@ boost::statechart::result PG::RecoveryState::GetInfo::react(const MNotifyRec& in return discard_event(); } -boost::statechart::result -PG::RecoveryState::GetInfo::react(const MInfoRec& infoevt) { - // notify and info are equivalent in this context. - post_event(MInfoRec(infoevt.from, infoevt.info)); - return discard_event(); -} - void PG::RecoveryState::GetInfo::exit() { context< RecoveryMachine >().log_exit(state_name, enter_time); } diff --git a/src/osd/PG.h b/src/osd/PG.h index cad6e87c079b9..ba8f260ae0c82 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -1173,11 +1173,9 @@ public: typedef boost::mpl::list < boost::statechart::transition< GotInfo, GetLog >, - boost::statechart::custom_reaction< MNotifyRec >, - boost::statechart::custom_reaction< MInfoRec > + boost::statechart::custom_reaction< MNotifyRec > > reactions; boost::statechart::result react(const MNotifyRec& infoevt); - boost::statechart::result react(const MInfoRec& infoevt); }; struct GetMissing; -- 2.39.5