From 8913ab4bb542233abb951f0faed3af2ff27c4f07 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Sun, 23 Feb 2014 00:48:27 -0800 Subject: [PATCH] ECBackend: skip canceled xattr reads as well Signed-off-by: Samuel Just --- src/osd/ECBackend.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index e4572ab6ec0..59d6b537a42 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -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(); (*(rop.complete[i->first].attrs)).swap(i->second); }