]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: update oi.size on write op implicitly truncating object up 30085/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 3 Sep 2019 01:59:40 +0000 (09:59 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 3 Sep 2019 02:20:53 +0000 (10:20 +0800)
commit52caa5b5841e49da3806bd1bf5adce221c42fafb
tree9d56ea296712ddea85ac35d3a7174238ef24f9cd
parentc5d45ab88a89b779e530ad796fb679961b79cf13
osd/PrimaryLogPG: update oi.size on write op implicitly truncating object up

See "BlueStore::_do_truncate", bluestore will reset ondisk object size
unconditionally to track truncated size. Hence we must adjust logical
size (and usage) accordingly to match the specified metrics.

Fixes: https://tracker.ceph.com/issues/41601
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PrimaryLogPG.cc