s3 allows for zero sized objects, which can be
created using chunked uploads. It is important to
call "recv_body (and ChunkMeta::create_next()) even
on zero sized objects, so that the proper chunk signature
can be presented at signature verification time.
Fixes: http://tracker.ceph.com/issues/21000
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit
4d3d72fd1c5e0e3913ee9f9b7f8ce2bfe6d4b6fa)
}
int len = 0;
- if (cl) {
+ {
ACCOUNTING_IO(s)->set_account(true);
bufferptr bp(cl);