]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: cast rgw_max_chunk_size to off_t
authorKefu Chai <kchai@redhat.com>
Thu, 15 Apr 2021 05:31:25 +0000 (13:31 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Apr 2021 05:34:33 +0000 (13:34 +0800)
commit7c9032a07f6c60afb9422e73bf82d781a771892c
treee3b74e391f57941a2d07ff98088eb142a65a859c
parent98f0617bd6262e5f6750b88b8f964415e54e56b4
rgw: cast rgw_max_chunk_size to off_t

as the left-hand operator is promoted to off_t which is a signed
integer, while rgw_max_chunk_size will be an unsigned after the
yaml-to-cxx migration. so let's cast it to `off_t` before comparing
them.

the same applies to rgw_copy_obj_progress_every_bytes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_compression.cc
src/rgw/rgw_op.cc