summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Farnum <gregory.farnum@dreamhost.com>2011-11-18 08:49:35 -0800
committerGreg Farnum <gregory.farnum@dreamhost.com>2011-11-18 09:49:57 -0800
commitdedf2c4a066876bdab9a0b0154196194cefc1340 (patch)
tree0027b268c9fcb966b5c471334763887a8188e09d
parent09c20c51299cd0251b4512d8e73c4190531eace0 (diff)
downloadceph-dedf2c4a066876bdab9a0b0154196194cefc1340.tar.gz
osd: error responses should trigger all requested notifications.
There's no good reason I can find to limit error code responses to the ACK. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
-rw-r--r--src/osd/OSD.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index c3df7232102..791f5763961 100644
--- a/src/osd/OSD.cc
+++ b/src/osd/OSD.cc
@@ -5096,12 +5096,7 @@ void OSD::reply_op_error(MOSDOp *op, int err)
void OSD::reply_op_error(MOSDOp *op, int err, eversion_t v)
{
int flags;
- if (err == 0)
- // reply with whatever ack/safe flags the caller wanted
- flags = op->get_flags() & (CEPH_OSD_FLAG_ACK|CEPH_OSD_FLAG_ONDISK);
- else
- // just ACK on error
- flags = CEPH_OSD_FLAG_ACK;
+ flags = op->get_flags() & (CEPH_OSD_FLAG_ACK|CEPH_OSD_FLAG_ONDISK);
MOSDOpReply *reply = new MOSDOpReply(op, err, osdmap->get_epoch(), flags);
Messenger *msgr = client_messenger;