No need for a dummy message. Make the (single) caller handle returning
no message as a non-error.
Signed-off-by: Sage Weil <sage@newdream.net>
pipe_lock.Lock();
if (!m) {
- fault(false, true);
+ if (r < 0)
+ fault(false, true);
continue;
}
if (aborted) {
dout(0) << "reader got " << front.length() << " + " << middle.length() << " + " << data.length()
<< " byte message.. ABORTED" << dendl;
- // MEH FIXME
- *pm = new MGenericMessage(CEPH_MSG_PING);
- header.type = CEPH_MSG_PING;
- (*pm)->set_header(header);
ret = 0;
goto out_dethrottle;
}