]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: correctly identify crush names
authorSage Weil <sage@inktank.com>
Fri, 16 Nov 2012 00:24:38 +0000 (16:24 -0800)
committerSage Weil <sage@inktank.com>
Fri, 16 Nov 2012 00:32:50 +0000 (16:32 -0800)
commit344c4fdc3f70b7cdc9b077891efb4fbd80848907
tree429bd600188f0b51143d6f3b2757f3f6e59a4ba4
parent592a89421f7817d8ff0eb4ceaea2791196137a1f
mon: correctly identify crush names

get_item_id() returns 0 if the name already exists; that's not what we
want here.  Verify the name exists before checking its id.

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