We'll use this to trim off last_backfill_started since it'll
often be included in rescans.
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit
8774f03d39b061bc1e811ee8af9d49108f0443c1)
return end == hobject_t::get_max();
}
+ /// removes items <= soid and adjusts begin to the first object
+ void trim_to(const hobject_t &soid) {
+ trim();
+ while (!objects.empty() && objects.begin()->first <= soid) {
+ pop_front();
+ }
+ }
+
/// Adjusts begin to the first object
void trim() {
if (!objects.empty())