From: Haomai Wang Date: Thu, 18 Sep 2014 07:44:45 +0000 (+0800) Subject: AsyncConnection: Fix incorrect usage for bufferlist::splice X-Git-Tag: v0.88~37^2~4^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d746a1f682ad74cfca1da6abef2916e57d4db445;p=ceph.git AsyncConnection: Fix incorrect usage for bufferlist::splice Signed-off-by: Haomai Wang --- diff --git a/src/msg/AsyncConnection.cc b/src/msg/AsyncConnection.cc index a7a846247309..ac60387e9f27 100644 --- a/src/msg/AsyncConnection.cc +++ b/src/msg/AsyncConnection.cc @@ -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); }