]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: Fix incorrect usage for bufferlist::splice
authorHaomai Wang <haomaiwang@gmail.com>
Thu, 18 Sep 2014 07:44:45 +0000 (15:44 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 8 Oct 2014 06:04:58 +0000 (14:04 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/AsyncConnection.cc

index a7a846247309dedd1f178d87f434e596c5c8c036..ac60387e9f27b004ce35263bb4e4fb89d72d93eb 100644 (file)
@@ -249,7 +249,7 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send)
   // trim already sent for outcoming_bl
   if (sended) {
     bufferlist bl;
-    bl.splice(sended, outcoming_bl.length()-sended, &outcoming_bl);
+    outcoming_bl.splice(sended, outcoming_bl.length()-sended, &bl);
     bl.swap(outcoming_bl);
   }