We have an iterator pointing at the element we want; no need to search
the map again in order to grab the element or remove it.
Signed-off-by: Greg Farnum <greg@inktank.com>
return;
}
- list<OpRequestRef>& ls = waiting_for_blocked_object[soid];
+ list<OpRequestRef>& ls = p->second;
dout(10) << __func__ << " " << soid << " requeuing " << ls.size() << " requests" << dendl;
requeue_ops(ls);
- waiting_for_blocked_object.erase(soid);
+ waiting_for_blocked_object.erase(p);
}
SnapSetContext *ReplicatedPG::create_snapset_context(const object_t& oid)