]> 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 49937/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 28 Jul 2022 12:10:15 +0000 (12:10 +0000)
committerNitzanMordhai <nmordech@redhat.com>
Tue, 31 Jan 2023 05:38:55 +0000 (07:38 +0200)
commit8960b8530df5e0a8a39d8b226a11f3a4fa57c0ad
tree1e2769d4237899b445914b3aa7aa9b8944a70976
parent9ffe802a5020bb2814058eec29c810ad5db87578
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>
(cherry picked from commit f060683a2d29fa4c7f20c6f5e20cae9ac23d4481)
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h