]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: 'osd create <uuid>'
authorSage Weil <sage@newdream.net>
Tue, 1 May 2012 23:14:20 +0000 (16:14 -0700)
committerSage Weil <sage@newdream.net>
Tue, 1 May 2012 23:14:20 +0000 (16:14 -0700)
commit779914ba5c4c306a3359a8b0fcf8959a00de9fa2
treed08fba382142f10a82a9c5a17c8c107c3b4481bf
parent78b9ccd371d568b87ade56d8d7c311d7f61c0c5a
mon: 'osd create <uuid>'

Make the osd create command idempotent by providing a uuid.  If you call it
multiple times with the same (or some other existing) uuid you'll get back
the osd id that is already using it.

Drop support for 'osd create <id>', which was mostly useless and
non-idempotent anyway.

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