]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: set object accounted size correctly 16179/head
authorfang.yuxiang <fang.yuxiang@eisoo.com>
Thu, 4 May 2017 07:58:37 +0000 (15:58 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 6 Jul 2017 17:18:07 +0000 (19:18 +0200)
commitd0e742cafae325cf794a2160b6df19296ac398a4
tree261f984814f164e6a658aa488bdc3130b2ba7931
parente12eae92b04d30d322740a6c7a33d86e448bf9c5
rgw: set object accounted size correctly

sometimes, object accounted size is set wrong,
because we don't konw the object size if don't resort to the compression info or manifest.
e.g, when i use s3cmd do copy object(bucket_A/obj_A -> bucket_B/obj_B, assume the size of obj_A is 4M).
then i use s3cmd do list bucket, I got obj_B size is 512K, it is the head size apparently.

Fixes: http://tracker.ceph.com/issues/20071
Signed-off-by: fang yuxiang <fang.yuxiang@eisoo.com>
(cherry picked from commit 539985a99eebdc72c8d2446acc1108664a162f68)
src/rgw/rgw_rados.cc