mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
The message length is pre-calculated in advance to provide correct content-length request header. This math is not obvious and deserves a comment. Also, the final message preparation code is also implicitly checking if any part failed to upload. There's a comment in the upload_sink's upload_part() method about it, but the finalization place deserves one too. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>