]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph, mon/OSDMonitor: fix up osd crush commands for <osd.N> or <N>
authorDan Mick <dan.mick@inktank.com>
Thu, 13 Jun 2013 01:08:17 +0000 (18:08 -0700)
committerDan Mick <dan.mick@inktank.com>
Thu, 13 Jun 2013 04:56:16 +0000 (21:56 -0700)
commita3767010a8a47fb8b8e07e3ee46a26ee0630404c
tree2859b2d8d971f8fae86d488375bf5ee7530b74be
parent8808ca57c652502d9cf803b0dc53673ca9dd62af
ceph, mon/OSDMonitor: fix up osd crush commands for <osd.N> or <N>

The new parsing code had been trying to allow flexibility for the
'old form' commands (where id could be different from N in osd.N),
but also accept 'new form' commands.  The new rule is that where
there's an OSD specified in the osd crush command, it is of type
CephOsdName, which can be an id *or* 'osd.<id>', but not both.

Pass CephOsdName as int64_t 'id' for convenience in mon code

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/ceph.in
src/mon/MonCommands.h
src/mon/OSDMonitor.cc
src/vstart.sh