prepare_send_message may be called twice, we need to move to write_message
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
old_footer.flags = footer.flags;
bl.append((char*)&old_footer, sizeof(old_footer));
}
- logger->inc(l_msgr_send_bytes, bl.length());
}
int AsyncConnection::write_message(Message *m, bufferlist& bl)
complete_bl.claim_append(bl);
+ logger->inc(l_msgr_send_bytes, bl.length());
ldout(async_msgr->cct, 20) << __func__ << " sending " << m->get_seq()
<< " " << m << dendl;
int rc = _try_send(complete_bl);