]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: fix cleanup of pgmeta-like objects on PG deletion
authorSage Weil <sage@redhat.com>
Thu, 18 Jul 2019 16:09:47 +0000 (11:09 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 23 Jul 2019 14:57:55 +0000 (16:57 +0200)
commit9904a09dd2b93bc883ba91a03d1362850656c0ff
treeb83ebeb5ad47c363a8e8fb9c4604644180f273e6
parentc1cd465c4f7a185c193fc8999a74b9ff428ac254
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>
(cherry picked from commit a0f48db5cbfc48761eeac0daa259fecbaa573969)

# Conflicts:
# src/osd/PG.cc
- location of this code is do_delete_work in master, _delete_some in n
src/osd/PG.cc