]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: provide data length when preparing message
authorAlex Elder <elder@inktank.com>
Tue, 2 Apr 2013 17:09:50 +0000 (12:09 -0500)
committerAlex Elder <elder@inktank.com>
Fri, 5 Apr 2013 20:57:13 +0000 (15:57 -0500)
commit0af231fc7922abe455d4de887185fc706ddf3ce4
tree3873912cccbd258ab7921bfe6ba7297449c6d973
parentb0bb70d12c365872547f10d185bf88eba3ed6083
libceph: provide data length when preparing message

In prepare_message_data(), the length used to initialize the cursor
is taken from the header of the message provided.  I'm working
toward not using the header data length field to determine length in
outbound messages, and this is a step in that direction.  For
inbound messages this will be set to be the actual number of bytes
that are arriving (which may be less than the total size of the data
buffer available).

This resolves:
    http://tracker.ceph.com/issues/4589

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c