]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: fix manifest object not to be promoted when references_chunk called
authorSungmin Lee <ssdohammer@gmail.com>
Thu, 19 Jan 2023 05:50:03 +0000 (14:50 +0900)
committerSungmin Lee <ssdohammer@gmail.com>
Fri, 7 Jul 2023 10:39:42 +0000 (10:39 +0000)
commit2d72e8396b6958ce75b9e804a2a1ae5c319737b5
tree0f4dacbae110cd41a5e71da0a700a7cc5db89452
parent5265e991ab0a6d1a65bdb290d01ff3a3b7661c6e
osd: fix manifest object not to be promoted when references_chunk called

When a cls_cas_references_chunk() is called on a chunked metadata object,
it makes the object's chunks be promoted in maybe_handle_manifest_detail().
It happens, for instance, while doing a chunk scrub job.

However, this operation doesn't need to get evicted data.
It only needs metadata information that already exists in metadata object.
To prevent this object promotion, this commit adds an exception handling for this.

Signed-off-by: Sungmin Lee <sung_min.lee@samsung.com>
src/osd/PrimaryLogPG.cc