]> git-server-git.apps.pok.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)
committerPrashant D <pdhange@redhat.com>
Mon, 8 Oct 2018 21:36:51 +0000 (17:36 -0400)
commita890baa50a12a6e57f8be0b5234efdffca108799
treec75d268a08869b0864fa9ec6539fe3b08b17aa89
parent87b5e7c4255796bdd4391cfa2e16959109047531
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>
(cherry picked from commit 0bd2546eaca72ed0122a9c2648df4bef05b0d5d2)
src/common/hobject.h
src/osd/osd_types.h