/*------Crashed-------*/
PG::RecoveryState::Crashed::Crashed(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Crashed";
context< RecoveryMachine >().log_enter(state_name);
/*------Initial-------*/
PG::RecoveryState::Initial::Initial(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Initial";
context< RecoveryMachine >().log_enter(state_name);
/*------Started-------*/
PG::RecoveryState::Started::Started(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started";
context< RecoveryMachine >().log_enter(state_name);
/*--------Reset---------*/
PG::RecoveryState::Reset::Reset(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Reset";
context< RecoveryMachine >().log_enter(state_name);
/*-------Start---------*/
PG::RecoveryState::Start::Start(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Start";
context< RecoveryMachine >().log_enter(state_name);
/*---------Primary--------*/
PG::RecoveryState::Primary::Primary(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary";
context< RecoveryMachine >().log_enter(state_name);
/*---------Peering--------*/
PG::RecoveryState::Peering::Peering(my_context ctx)
- : my_base(ctx), flushed(false)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct), flushed(false)
{
state_name = "Started/Primary/Peering";
context< RecoveryMachine >().log_enter(state_name);
/*------Backfilling-------*/
PG::RecoveryState::Backfilling::Backfilling(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/Backfilling";
context< RecoveryMachine >().log_enter(state_name);
/*--WaitRemoteBackfillReserved--*/
PG::RecoveryState::WaitRemoteBackfillReserved::WaitRemoteBackfillReserved(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/WaitRemoteBackfillReserved";
context< RecoveryMachine >().log_enter(state_name);
/*--WaitLocalBackfillReserved--*/
PG::RecoveryState::WaitLocalBackfillReserved::WaitLocalBackfillReserved(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/WaitLocalBackfillReserved";
context< RecoveryMachine >().log_enter(state_name);
/*----NotBackfilling------*/
PG::RecoveryState::NotBackfilling::NotBackfilling(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/NotBackfilling";
context< RecoveryMachine >().log_enter(state_name);
/*---RepNotRecovering----*/
PG::RecoveryState::RepNotRecovering::RepNotRecovering(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/ReplicaActive/RepNotRecovering";
context< RecoveryMachine >().log_enter(state_name);
/*---RepWaitRecoveryReserved--*/
PG::RecoveryState::RepWaitRecoveryReserved::RepWaitRecoveryReserved(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/ReplicaActive/RepWaitRecoveryReserved";
context< RecoveryMachine >().log_enter(state_name);
/*-RepWaitBackfillReserved*/
PG::RecoveryState::RepWaitBackfillReserved::RepWaitBackfillReserved(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/ReplicaActive/RepWaitBackfillReserved";
context< RecoveryMachine >().log_enter(state_name);
/*---RepRecovering-------*/
PG::RecoveryState::RepRecovering::RepRecovering(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/ReplicaActive/RepRecovering";
context< RecoveryMachine >().log_enter(state_name);
/*------Activating--------*/
PG::RecoveryState::Activating::Activating(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/Activating";
context< RecoveryMachine >().log_enter(state_name);
}
PG::RecoveryState::WaitLocalRecoveryReserved::WaitLocalRecoveryReserved(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/WaitLocalRecoveryReserved";
context< RecoveryMachine >().log_enter(state_name);
PG::RecoveryState::WaitRemoteRecoveryReserved::WaitRemoteRecoveryReserved(my_context ctx)
: my_base(ctx),
+ NamedState(context< RecoveryMachine >().pg->cct),
acting_osd_it(context< Active >().sorted_acting_set.begin())
{
state_name = "Started/Primary/Active/WaitRemoteRecoveryReserved";
}
PG::RecoveryState::Recovering::Recovering(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/Recovering";
context< RecoveryMachine >().log_enter(state_name);
}
PG::RecoveryState::Recovered::Recovered(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
int newest_update_osd;
}
PG::RecoveryState::Clean::Clean(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Active/Clean";
context< RecoveryMachine >().log_enter(state_name);
/*---------Active---------*/
PG::RecoveryState::Active::Active(my_context ctx)
: my_base(ctx),
+ NamedState(context< RecoveryMachine >().pg->cct),
sorted_acting_set(context< RecoveryMachine >().pg->acting.begin(),
context< RecoveryMachine >().pg->acting.end()),
all_replicas_activated(false)
/*------ReplicaActive-----*/
PG::RecoveryState::ReplicaActive::ReplicaActive(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/ReplicaActive";
/*-------Stray---*/
PG::RecoveryState::Stray::Stray(my_context ctx)
- : my_base(ctx) {
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct) {
state_name = "Started/Stray";
context< RecoveryMachine >().log_enter(state_name);
/*--------GetInfo---------*/
PG::RecoveryState::GetInfo::GetInfo(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Peering/GetInfo";
context< RecoveryMachine >().log_enter(state_name);
/*------GetLog------------*/
PG::RecoveryState::GetLog::GetLog(my_context ctx) :
- my_base(ctx), newest_update_osd(-1), msg(0)
+ my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct), newest_update_osd(-1), msg(0)
{
state_name = "Started/Primary/Peering/GetLog";
context< RecoveryMachine >().log_enter(state_name);
/*------WaitActingChange--------*/
PG::RecoveryState::WaitActingChange::WaitActingChange(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Peering/WaitActingChange";
context< RecoveryMachine >().log_enter(state_name);
/*------Incomplete--------*/
PG::RecoveryState::Incomplete::Incomplete(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Peering/Incomplete";
context< RecoveryMachine >().log_enter(state_name);
/*------GetMissing--------*/
PG::RecoveryState::GetMissing::GetMissing(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Peering/GetMissing";
context< RecoveryMachine >().log_enter(state_name);
/*---WaitFlushedPeering---*/
PG::RecoveryState::WaitFlushedPeering::WaitFlushedPeering(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Peering/WaitFlushedPeering";
PG *pg = context< RecoveryMachine >().pg;
/*------WaitUpThru--------*/
PG::RecoveryState::WaitUpThru::WaitUpThru(my_context ctx)
- : my_base(ctx)
+ : my_base(ctx), NamedState(context< RecoveryMachine >().pg->cct)
{
state_name = "Started/Primary/Peering/WaitUpThru";
context< RecoveryMachine >().log_enter(state_name);