]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: don't host msg bufferlists in write_message
authorSage Weil <sage@newdream.net>
Fri, 3 Oct 2008 17:56:45 +0000 (10:56 -0700)
committerSage Weil <sage@newdream.net>
Fri, 3 Oct 2008 19:10:16 +0000 (12:10 -0700)
payload and data need to be preserved in case the connection drops and the messages
need to be resent.

src/msg/SimpleMessenger.cc

index f8b9d776592cd062bec6d9c726445457eb279a24..c494add0a040866698ee9b838b4766334b1e0b7c 100644 (file)
@@ -1878,8 +1878,7 @@ int Rank::Pipe::write_message(Message *m, ceph_msg_header *header,
   f.front_crc = payload.crc32c(0);
   f.data_crc = data.crc32c(0);
 
-  bufferlist blist;
-  blist.claim(payload);
+  bufferlist blist = payload;
   blist.append(data);
   
   dout(20)  << "write_message " << m << " to " << header->dst << dendl;