]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 25 Oct 2014 08:44:16 +0000 (10:44 +0200)
committerSage Weil <sage@redhat.com>
Mon, 27 Oct 2014 19:44:25 +0000 (12:44 -0700)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/msg/async/AsyncConnection.cc

index 4a050c00a5b8561bc7913fc15d012eceb0a40818..5e68415341ca801106c54e1e511a36a3cb800d75 100644 (file)
@@ -249,7 +249,7 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send)
       msgvec[msg.msg_iovlen].iov_len = pb->length();
       msg.msg_iovlen++;
       msglen += pb->length();
-      pb++;
+      ++pb;
       size--;
     }