Fixes: 14423
Backport: infernalis
Signed-off-by: Samuel Just <sjust@redhat.com>
// cancel and requeue proxy ops on this object
if (!r) {
for (map<ceph_tid_t, ProxyReadOpRef>::iterator it = proxyread_ops.begin();
- it != proxyread_ops.end(); ++it) {
+ it != proxyread_ops.end();) {
if (it->second->soid == cobc->obs.oi.soid) {
- cancel_proxy_read(it->second);
+ cancel_proxy_read((it++)->second);
+ } else {
+ ++it;
}
}
for (map<ceph_tid_t, ProxyWriteOpRef>::iterator it = proxywrite_ops.begin();