GRANT = 1, // replica->primary: ok, i reserved it
REJECT = 2, // replica->primary: sorry, try again later (*)
RELEASE = 3, // primary->replcia: release the slot i reserved before
- TOOFULL = 4, // replica->primary: too full, stop backfilling
+ REVOKE_TOOFULL = 4, // replica->primary: too full, stop backfilling
REVOKE = 5, // replica->primary: i'm taking back the slot i gave you
// (*) NOTE: prior to luminous, REJECT was overloaded to also mean release
};
query_epoch,
query_epoch,
RemoteReservationCanceled());
- case TOOFULL:
+ case REVOKE_TOOFULL:
return new PGPeeringEvent(
query_epoch,
query_epoch,
case RELEASE:
out << "RELEASE";
break;
- case TOOFULL:
- out << "TOOFULL";
+ case REVOKE_TOOFULL:
+ out << "REVOKE_TOOFULL";
break;
case REVOKE:
out << "REVOKE";
header.compat_version = 3;
encode(pgid.pgid, payload);
encode(query_epoch, payload);
- encode((type == RELEASE || type == TOOFULL || type == REVOKE) ?
+ encode((type == RELEASE || type == REVOKE_TOOFULL || type == REVOKE) ?
REJECT : type, payload);
encode(priority, payload);
encode(pgid.shard, payload);
pg->osd->send_message_osd_cluster(
pg->primary.osd,
new MBackfillReserve(
- MBackfillReserve::TOOFULL,
+ MBackfillReserve::REVOKE_TOOFULL,
spg_t(pg->info.pgid.pgid, pg->primary.shard),
pg->get_osdmap()->get_epoch()),
pg->get_osdmap()->get_epoch());