]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: warn on ops directed to the wrong pg_t
authorSage Weil <sage@redhat.com>
Mon, 20 Feb 2017 12:45:32 +0000 (07:45 -0500)
committerSage Weil <sage@redhat.com>
Thu, 23 Feb 2017 15:29:42 +0000 (10:29 -0500)
commitfce285a5ffbcfbd36c9ac525af953ab4bd7d32c6
tree887190440f1a87db1e1cf9eb6eb58daf9611e017
parent930dc603e7b0d0706d067c864be89f195aca4a45
osd: warn on ops directed to the wrong pg_t

Check whether the request hobj maps to the current pg_t.  If we have the
osd_debug_misdirected_ops setting enabled (as teuthology does), assert out
as well so that the error is easy to spot.  This catches bugs in the
Objecter (especially the new code that explicitly names the spg_t for the
request).

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PrimaryLogPG.cc
src/osd/osd_types.h