ECBackend: skip canceled xattr reads as well

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-02-23 00:48:27 -08:00
parent bcc18d4877
commit 8913ab4bb5

View File

@ -942,7 +942,10 @@ void ECBackend::handle_sub_read_reply(
i != op.attrs_read.end();
++i) {
assert(!op.errors.count(i->first));
assert(rop.to_read.count(i->first));
if (!rop.to_read.count(i->first)) {
// We canceled this read! @see filter_read_op
continue;
}
rop.complete[i->first].attrs = map<string, bufferlist>();
(*(rop.complete[i->first].attrs)).swap(i->second);
}