crimson/osd: update oi.size after truncating an object
authorKefu Chai <kchai@redhat.com>
Fri, 21 Aug 2020 05:08:42 +0000 (13:08 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 24 Aug 2020 09:51:31 +0000 (17:51 +0800)
commit709ed943cc8bac8ba34c94fd6fc9ceab445c440b
tree3bdc33c1ead3d2e6a27ed8fd26fe22b6ece9f215
parentc850a1d25d357daf36eeeb3af8c9abbada336739
crimson/osd: update oi.size after truncating an object

* update oi.size if object size changes after the object is truncated
* do not add a truncate op to trasaction of the size of object does
  not change because of truncate op.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg_backend.cc