From: Kefu Chai Date: Sat, 27 Dec 2014 06:53:32 +0000 (+0800) Subject: AsyncMessenger: s/sended/sent/ X-Git-Tag: v0.92~78^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d49b6940649b73c73c1832411ea2fceb345c97e3;p=ceph.git AsyncMessenger: s/sended/sent/ Signed-off-by: Kefu Chai --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index b99adf6c2e4..c6a63018273 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -302,7 +302,7 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send) } int r = 0; - uint64_t sended = 0; + uint64_t sent = 0; list::const_iterator pb = outcoming_bl.buffers().begin(); uint64_t left_pbrs = outcoming_bl.buffers().size(); while (left_pbrs) { @@ -327,7 +327,7 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send) return r; // "r" is the remaining length - sended += msglen - r; + sent += msglen - r; if (r > 0) { ldout(async_msgr->cct, 5) << __func__ << " remaining " << r << " needed to be sent, creating event for writing" @@ -338,14 +338,14 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send) } // trim already sent for outcoming_bl - if (sended) { + if (sent) { bufferlist bl; - if (sended < outcoming_bl.length()) - outcoming_bl.splice(sended, outcoming_bl.length()-sended, &bl); + if (sent < outcoming_bl.length()) + outcoming_bl.splice(sent, outcoming_bl.length()-sent, &bl); bl.swap(outcoming_bl); } - ldout(async_msgr->cct, 20) << __func__ << " send bytes " << sended + ldout(async_msgr->cct, 20) << __func__ << " sent bytes " << sent << " remaining bytes " << outcoming_bl.length() << dendl; if (!open_write && is_queued()) {