Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
if (r == -ECANCELED)
return;
std::scoped_lock locker{*pg};
+ if (last_peering_reset != pg->get_last_peering_reset()) {
+ return;
+ }
auto it = pg->manifest_ops.find(oid);
if (it == pg->manifest_ops.end()) {
// raced with cancel_manifest_ops
} else {
// if any failure occurs, put a mark on the results to recognize the failure
it->second->results[0] = r;
- if (last_peering_reset != pg->get_last_peering_reset())
- it->second->results[0] = -EINVAL;
}
pg->manifest_ops.erase(it);
}