osd/PG.cc: loop invariant code motion
Reviewed-by: Sage Weil <sage@redhat.com>
// We pull the log from the peer's last_epoch_started to ensure we
// get enough log to detect divergent updates.
- eversion_t since(pi.last_epoch_started, 0);
+ since.epoch = pi.last_epoch_started;
assert(pi.last_update >= pg->info.log_tail); // or else choose_acting() did a bad thing
if (pi.log_tail <= since) {
- dout(10) << " requesting log+missing since " << since << " from osd." << *i << dendl;
+ ldout(pg->cct, 10) << " requesting log+missing since " << since << " from osd." << *i << dendl;
context< RecoveryMachine >().send_query(
*i,
pg_query_t(