]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: update oi.size on write op implicitly truncating object up 30275/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 3 Sep 2019 01:59:40 +0000 (09:59 +0800)
committerPrashant D <pdhange@redhat.com>
Tue, 10 Sep 2019 00:56:46 +0000 (20:56 -0400)
commit8513740dda449237d46d5e1aa913b41c81552e78
tree05cd8d6da9986ed9e9458006630560bf3f4baea5
parent6e8aca4ca6ddb843e2f7c30a02f81f84ba0c9c11
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>
(cherry picked from commit 52caa5b5841e49da3806bd1bf5adce221c42fafb)
src/osd/PrimaryLogPG.cc