]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: fix cleanup of pgmeta-like objects on PG deletion
authorSage Weil <sage@redhat.com>
Thu, 2 May 2019 16:28:14 +0000 (11:28 -0500)
committerSage Weil <sage@redhat.com>
Mon, 6 May 2019 02:14:17 +0000 (21:14 -0500)
commita0f48db5cbfc48761eeac0daa259fecbaa573969
treed1254e3f4008d4d52ce30179aab1f1b454761e67
parent6ad73b2d0f4ffeaf6713a15f134512864c14ffd3
osd/PG: fix cleanup of pgmeta-like objects on PG deletion

If an object has an empty 'name' field, it "looks" like a pgmeta object,
and the PG cleanup code was skipping it.  However, we were letting these
objects get created.

Fix by only skipping *our* pgmeta object.  If there are other pgmeta-like
objects in the PG collection, clean them up.

Fixes: https://tracker.ceph.com/issues/38724
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc