Skip to content

Commit

Permalink
ECBackend: skip canceled xattr reads as well
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Just <[email protected]>
  • Loading branch information
Samuel Just committed Feb 23, 2014
1 parent bcc18d4 commit 8913ab4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/osd/ECBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8913ab4

Please sign in to comment.