]> 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 30278/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:36 +0000 (20:56 -0400)
commit432d1369c753badb9f173fc1ffc74fb9a328afa0
treedb609c488e4462109ac387350ac2d26afd115aa1
parenta2c46bd9bcbea6a9bdcc4d5a0414e18094c33c3e
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