]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: get attribute for ec return wrong value for non-exist object 47332/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 28 Jul 2022 12:10:15 +0000 (12:10 +0000)
committerNitzanMordhai <nmordech@redhat.com>
Wed, 10 Aug 2022 14:19:04 +0000 (14:19 +0000)
commitf060683a2d29fa4c7f20c6f5e20cae9ac23d4481
treeefe38e3809c931c67f3c9a89b98b9ec49836c4dd
parent92d13f0a8f0f6e0263a0f05f04809d6becd9c736
osd/PrimaryLogPG: get attribute for ec return wrong value for non-exist object

In case of copy object when the target copy is not exist with erasure code pool
getattr_maybe_cache will return ENODATA that will cause ref_count to wildcard tag
that can affect pglog to grow quickly with refcounts for each copy

Fixes: https://tracker.ceph.com/issues/56707
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h