]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix `osd crush link` id resolution 2808/head
authorJohn Spray <john.spray@redhat.com>
Mon, 27 Oct 2014 10:50:54 +0000 (10:50 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 27 Oct 2014 10:53:32 +0000 (10:53 +0000)
commita9a218546ad61180000cd2018a47d0b812e7a83b
tree920153878d2e2a5991f09563f9d599a770bfb447
parent1f566023eda0e8e10ea55c69caf7f37395c1adc1
mon: fix `osd crush link` id resolution

A junk value for ID was falling through from
the outer scope.  Rename the outer one to
`osdid` and look up `id` explicitly in crush link.

For a bonus also add an error string for when
link_bucket returns an error (previously
would get plain "Error EINVAL")

Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/OSDMonitor.cc