libceph: don't mark footer complete before it is
authorAlex Elder <elder@inktank.com>
Mon, 11 Jun 2012 19:57:13 +0000 (14:57 -0500)
committerSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 04:14:13 +0000 (21:14 -0700)
commitfd154f3c75465abd83b7a395033e3755908a1e6e
treee3b386cd2bf33c687cdac4ef45bf8a063a7049d0
parent84ca8fc87fcf4ab97bb8acdb59bf97bb4820cb14
libceph: don't mark footer complete before it is

This is a nit, but prepare_write_message() sets the FOOTER_COMPLETE
flag before the CRC for the data portion (recorded in the footer)
has been completely computed.  Hold off setting the complete flag
until we've decided it's ready to send.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/messenger.c