]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncMessenger: s/sended/sent/
authorKefu Chai <tchaikov@gmail.com>
Sat, 27 Dec 2014 06:53:32 +0000 (14:53 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 31 Dec 2014 02:45:00 +0000 (10:45 +0800)
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/msg/async/AsyncConnection.cc

index b99adf6c2e43313348d567fe1e1bcf16764d84d5..c6a63018273212b88d6cbd418ce7c80563126f96 100644 (file)
@@ -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<bufferptr>::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()) {