]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix clone size mismatch when dedup object is evicted
authormyoungwon oh <ohmyoungwon@gmail.com>
Thu, 19 Nov 2020 07:54:01 +0000 (16:54 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Sat, 12 Dec 2020 12:52:09 +0000 (21:52 +0900)
commit7ea895171bea928c140333259d4e5989d5601c5e
treeaad61089c8a4af2b8a268f31c1ca25ab8a7f1853
parentc2372c69381470eee3ec12348dc75ecb4742c8d7
osd: fix clone size mismatch when dedup object is evicted

When evicting deduped object which is cloned,
we try to shrink its size to zero if all chunks are in chunk_map.
However, we did not set clone_size to zero, resulting in
clone size mismatch.

Specifically, build_push_op appends zero data with reference to
copy_set set by clone_size, but actual size in oi.size is zero.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc
src/test/librados/tier_cxx.cc