]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: populate *primary when pool dne 1197/head
authorSage Weil <sage@inktank.com>
Fri, 7 Feb 2014 17:38:37 +0000 (09:38 -0800)
committerSage Weil <sage@inktank.com>
Fri, 7 Feb 2014 17:38:37 +0000 (09:38 -0800)
commit3a5fa8765f30ddee86fb3cb2db6a9733fb9dbe78
tree31aba281bd9a3eeda908ffebb1d6db01d4bc5dd3
parent3d4353108ba790e2d714bd379c04b1a3afc5b981
osd/OSDMap: populate *primary when pool dne

This fixes a valgrind error from OSD::handle_osd_map where primary is not
initialized and is compared after the call to pg_to_acting_osds().

We are still not distinguishing from "no mapping" to "pool doesn't exist,
no mapping".  That is a somewhat larger change, though.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSDMap.cc