]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: add_object_context_to_pg_stat - fix stat 18616/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 26 Oct 2017 07:54:27 +0000 (15:54 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 30 Oct 2017 13:32:43 +0000 (21:32 +0800)
commit8c630a040eb616d50ced921a5b7e73b1770c9418
tree31233862e999fb1eebafeb453ecf54d85b352834
parent83594df164a1d858e1248fdbb217a6c5568e63b1
osd/PrimaryLogPG: add_object_context_to_pg_stat - fix stat

There might be holes in the extents map, thus it is not always
consistent to calc the clone bytes this way.
Instead we could switch to its own (simpler and consistent) way to
count used bytes for head-object and clone respectively.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PrimaryLogPG.cc