summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Farnum <greg@inktank.com>2013-10-14 11:22:53 -0700
committerGregory Farnum <greg@inktank.com>2013-10-14 11:22:53 -0700
commit097d61d104ef35f53fcd613e9e49c6232d34ab7d (patch)
tree8cb65cb85180cc9dfd0c20e6af1e0a1ba569fa5f
parent6641273b19914a3af098bb3005724bec481e6ce3 (diff)
parent7113186c32c90713369a8d1a8e94d6a0ccba8394 (diff)
downloadceph-097d61d104ef35f53fcd613e9e49c6232d34ab7d.tar.gz
Merge pull request #711 from ceph/wip-objecter-errors
These two patches fix several completion Contexts which are inappropriately setting the Op rval to zero. Reviewed-by: Greg Farnum <greg@inktank.com>
-rw-r--r--src/osdc/Objecter.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h
index 1196633276d..938c97a4f31 100644
--- a/src/osdc/Objecter.h
+++ b/src/osdc/Objecter.h
@@ -386,7 +386,6 @@ struct ObjectOperation {
pwatchers->push_back(ow);
}
}
- *prval = 0;
}
catch (buffer::error& e) {
if (prval)
@@ -424,8 +423,6 @@ struct ObjectOperation {
}
psnaps->seq = resp.seq;
}
- if (prval)
- *prval = 0;
}
catch (buffer::error& e) {
if (prval)
@@ -617,10 +614,9 @@ struct ObjectOperation {
}
::decode(*cursor, p);
} catch (buffer::error& e) {
- r = -EIO;
+ if (prval)
+ *prval = -EIO;
}
- if (prval)
- *prval = r;
}
};
@@ -664,10 +660,9 @@ struct ObjectOperation {
if (pisdirty)
*pisdirty = isdirty;
} catch (buffer::error& e) {
- r = -EIO;
+ if (prval)
+ *prval = -EIO;
}
- if (prval)
- *prval = r;
}
};