Argument 'backfill' in PeeringState::init is always set to
false. Commit log shows this is originally for _create_lock_pg
which is removed in
d9dcaa79b779. So, just remove dead code.
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
acting_primary,
info->history,
info->past_intervals,
- false,
rctx.transaction);
return shard_services.start_operation<PGAdvanceMap>(
const vector<int>& newacting, int new_acting_primary,
const pg_history_t& history,
const PastIntervals& pi,
- bool backfill,
ObjectStore::Transaction &t)
{
peering_state.init(
role, newup, new_up_primary, newacting,
- new_acting_primary, history, pi, backfill, t);
+ new_acting_primary, history, pi, t);
}
seastar::future<> PG::read_state(crimson::os::FuturizedStore* store)
int acting_primary,
const pg_history_t& history,
const PastIntervals& pim,
- bool backfill,
ceph::os::Transaction &t);
seastar::future<> read_state(crimson::os::FuturizedStore* store);
acting_primary,
info->history,
info->past_intervals,
- false,
rctx.transaction);
pg->init_collection_pool_opts();
const vector<int>& newacting, int new_acting_primary,
const pg_history_t& history,
const PastIntervals& pi,
- bool backfill,
ObjectStore::Transaction &t)
{
recovery_state.init(
role, newup, new_up_primary, newacting,
- new_acting_primary, history, pi, backfill, t);
+ new_acting_primary, history, pi, t);
}
void PG::shutdown()
int acting_primary,
const pg_history_t& history,
const PastIntervals& pim,
- bool backfill,
ObjectStore::Transaction &t);
/// read existing pg state off disk
const vector<int>& newacting, int new_acting_primary,
const pg_history_t& history,
const PastIntervals& pi,
- bool backfill,
ObjectStore::Transaction &t)
{
psdout(10) << "init role " << role << " up "
pg_log.set_missing_may_contain_deletes();
}
- if (backfill) {
- psdout(10) << __func__ << ": Setting backfill" << dendl;
- info.set_last_backfill(hobject_t());
- info.last_complete = info.last_update;
- pg_log.mark_log_for_rewrite();
- }
-
on_new_interval();
dirty_info = true;
const std::vector<int>& newacting, int new_acting_primary,
const pg_history_t& history,
const PastIntervals& pi,
- bool backfill,
ObjectStore::Transaction &t);
/// Init pg instance from disk state