]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: fix null dref when pool dne 2839/head
authorSage Weil <sage@redhat.com>
Thu, 30 Oct 2014 17:56:36 +0000 (10:56 -0700)
committerSage Weil <sage@redhat.com>
Thu, 30 Oct 2014 17:56:36 +0000 (10:56 -0700)
commit50c2c7589a3faeea296cc1454f3569e0cbb138b6
treee036ade38cd37cadddfbff4844ffcd5ac12e25e9
parent51e189c1b0930b1f8f8be37dc51f60705d26713c
osdc/Objecter: fix null dref when pool dne

If the base pool does not exist, we need to avoid dereferencing pi.
This simplest fix is to return with POOL_DNE early and skip all of the
checks.

Note that there is one other small semantic change in this function: if
we are using the precalc_pgid then base_oloc pool has to match.  But
the list_objects() caller does that, so we're fine.

Backport: giant
Fixes: #9944
Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc