// vim: ts=8 sw=2 smarttab
#include <algorithm>
+#include <boost/type_index.hpp>
#include "crimson/osd/backfill_state.h"
#include "crimson/osd/backfill_facades.h"
backfill_machine.initiate();
}
+template <class S>
+BackfillState::StateHelper<S>::StateHelper()
+{
+ logger().debug("enter {}",
+ boost::typeindex::type_id<S>().pretty_name());
+}
+
+template <class S>
+BackfillState::StateHelper<S>::~StateHelper()
+{
+ logger().debug("exit {}",
+ boost::typeindex::type_id<S>().pretty_name());
+}
+
BackfillState::~BackfillState() = default;
BackfillState::BackfillMachine::BackfillMachine(
BackfillState::Enqueuing::Enqueuing(my_context ctx)
: my_base(ctx)
{
- logger().debug("{}", __func__);
auto& primary_bi = backfill_state().backfill_info;
// update our local interval to cope with recent changes
BackfillState::PrimaryScanning::PrimaryScanning(my_context ctx)
: my_base(ctx)
{
- logger().debug("{}", __func__);
backfill_state().backfill_info.version = \
peering_state().get_info().last_update;
backfill_listener().request_primary_scan(
BackfillState::ReplicasScanning::ReplicasScanning(my_context ctx)
: my_base(ctx)
{
- logger().debug("{}", __func__);
for (const auto& bt : peering_state().get_backfill_targets()) {
if (const auto& pbi = backfill_state().peer_backfill_info.at(bt);
replica_needs_scan(pbi, backfill_state().backfill_info)) {
BackfillState::Waiting::Waiting(my_context ctx)
: my_base(ctx)
{
- logger().debug("{}: entered Waiting", __func__);
}
boost::statechart::result