commit | 84ca8fc87fcf4ab97bb8acdb59bf97bb4820cb14 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Mon Jun 11 14:57:13 2012 -0500 |
committer | Sage Weil <sage@inktank.com> | Thu Jul 05 21:14:12 2012 -0700 |
tree | e1d859e4e6742cb872b06d323a909f648af62c7f | |
parent | 739c905baa018c99003564ebc367d93aa44d4861 [diff] |
libceph: encapsulate advancing msg page In write_partial_msg_pages(), once all the data from a page has been sent we advance to the next one. Put the code that takes care of this into its own function. While modifying write_partial_msg_pages(), make its local variable "in_trail" be Boolean, and use the local variable "msg" (which is just the connection's current out_msg pointer) consistently. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>