if (!op.temp_added.empty()) {
add_temp_objs(op.temp_added);
}
- if (op.backfill) {
+ if (op.backfill_or_async_recovery) {
for (set<hobject_t>::iterator i = op.temp_removed.begin();
i != op.temp_removed.end();
++i) {
op.updated_hit_set_history,
op.trim_to,
op.roll_forward_to,
- !op.backfill,
+ !op.backfill_or_async_recovery,
localt);
if (!get_parent()->pg_is_undersized() &&
encode(temp_removed, bl);
encode(updated_hit_set_history, bl);
encode(roll_forward_to, bl);
- encode(backfill, bl);
+ encode(backfill_or_async_recovery, bl);
ENCODE_FINISH(bl);
}
roll_forward_to = trim_to;
}
if (struct_v >= 4) {
- decode(backfill, bl);
+ decode(backfill_or_async_recovery, bl);
} else {
- // The old protocol used an empty transaction to indicate backfill
- backfill = t.empty();
+ // The old protocol used an empty transaction to indicate backfill or async_recovery
+ backfill_or_async_recovery = t.empty();
}
DECODE_FINISH(bl);
}
<< ", roll_forward_to=" << rhs.roll_forward_to;
if (rhs.updated_hit_set_history)
lhs << ", has_updated_hit_set_history";
- if (rhs.backfill)
- lhs << ", backfill";
+ if (rhs.backfill_or_async_recovery)
+ lhs << ", backfill_or_async_recovery";
return lhs << ")";
}
f->dump_stream("roll_forward_to") << roll_forward_to;
f->dump_bool("has_updated_hit_set_history",
static_cast<bool>(updated_hit_set_history));
- f->dump_bool("backfill", backfill);
+ f->dump_bool("backfill_or_async_recovery", backfill_or_async_recovery);
}
void ECSubWrite::generate_test_instances(list<ECSubWrite*> &o)
set<hobject_t> temp_added;
set<hobject_t> temp_removed;
boost::optional<pg_hit_set_history_t> updated_hit_set_history;
- bool backfill = false;
+ bool backfill_or_async_recovery = false;
ECSubWrite() : tid(0) {}
ECSubWrite(
pg_shard_t from,
boost::optional<pg_hit_set_history_t> updated_hit_set_history,
const set<hobject_t> &temp_added,
const set<hobject_t> &temp_removed,
- bool backfill)
+ bool backfill_or_async_recovery)
: from(from), tid(tid), reqid(reqid),
soid(soid), stats(stats), t(t),
at_version(at_version),
temp_added(temp_added),
temp_removed(temp_removed),
updated_hit_set_history(updated_hit_set_history),
- backfill(backfill)
+ backfill_or_async_recovery(backfill_or_async_recovery)
{}
void claim(ECSubWrite &other) {
from = other.from;
temp_added.swap(other.temp_added);
temp_removed.swap(other.temp_removed);
updated_hit_set_history = other.updated_hit_set_history;
- backfill = other.backfill;
+ backfill_or_async_recovery = other.backfill_or_async_recovery;
}
void encode(bufferlist &bl) const;
void decode(bufferlist::iterator &bl);