]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types: fix pg_t::contains() to check pool id too
authorSage Weil <sage@redhat.com>
Thu, 13 Sep 2018 18:31:40 +0000 (13:31 -0500)
committerSage Weil <sage@redhat.com>
Thu, 13 Sep 2018 18:31:40 +0000 (13:31 -0500)
commit0bd2546eaca72ed0122a9c2648df4bef05b0d5d2
tree050188c8c6fac616131656678e298fd43a56dd98
parentad9fc4977626b84b78d56703045c68c6439adedf
osd/osd_types: fix pg_t::contains() to check pool id too

This is used by bluestore fsck to ensure we're looking at the right
collection.  It needs to validate both that the pool id matches the
object (including the temp objects) and that the hash matches; we were
only checking the hash before.

Fixes: http://tracker.ceph.com/issues/32731
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/hobject.h
src/osd/osd_types.h