Bitwise has been required since luminous. We don't need this code now.
Signed-off-by: Sage Weil <sage@redhat.com>
<< " < needed " << need << ")" << dendl;
continue;
}
- if (!oinfo.last_backfill.is_max() &&
- !oinfo.last_backfill_bitwise) {
- ldout(cct, 10) << "search_for_missing " << soid << " " << need
- << " also missing on osd." << fromosd
- << " (last_backfill " << oinfo.last_backfill
- << " but with wrong sort order)"
- << dendl;
- continue;
- }
if (p->first >= oinfo.last_backfill) {
// FIXME: this is _probably_ true, although it could conceivably
// be in the undefined region! Hmm!
new_entries.splice(new_entries.end(), olog.log, from, to);
append_log_entries_update_missing(
info.last_backfill,
- info.last_backfill_bitwise,
new_entries,
false,
&log,
template <typename missing_type>
static bool append_log_entries_update_missing(
const hobject_t &last_backfill,
- bool last_backfill_bitwise,
const mempool::osd_pglog::list<pg_log_entry_t> &entries,
bool maintain_rollback,
IndexedLog *log,
}
bool append_new_log_entries(
const hobject_t &last_backfill,
- bool last_backfill_bitwise,
const mempool::osd_pglog::list<pg_log_entry_t> &entries,
LogEntryHandler *rollbacker) {
bool invalidate_stats = append_log_entries_update_missing(
last_backfill,
- last_backfill_bitwise,
entries,
true,
&log,
bool needs_past_intervals = pi.dne();
- /*
- * cover case where peer sort order was different and
- * last_backfill cannot be interpreted
- */
- bool force_restart_backfill =
- !pi.last_backfill.is_max() &&
- !pi.last_backfill_bitwise;
-
- if (pi.last_update == info.last_update && !force_restart_backfill) {
+ if (pi.last_update == info.last_update) {
// empty log
if (!pi.last_backfill.is_max())
pl->get_clog_info() << info.pgid << " continuing backfill to osd."
} else if (
pg_log.get_tail() > pi.last_update ||
pi.last_backfill == hobject_t() ||
- force_restart_backfill ||
(backfill_targets.count(*i) && pi.last_backfill.is_max())) {
/* ^ This last case covers a situation where a replica is not contiguous
* with the auth_log, but is contiguous with this replica. Reshuffling
bool invalidate_stats =
pg_log.append_new_log_entries(
info.last_backfill,
- info.last_backfill_bitwise,
entries,
rollbacker.get());
pg_info_t& pinfo(peer_info[peer]);
bool invalidate_stats = PGLog::append_log_entries_update_missing(
pinfo.last_backfill,
- info.last_backfill_bitwise,
entries,
true,
NULL,