]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: rework `osd create`
authorJoao Eduardo Luis <joao@suse.de>
Tue, 23 May 2017 17:23:01 +0000 (18:23 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Mon, 5 Jun 2017 14:31:40 +0000 (15:31 +0100)
commit52c0bffb0efc687062fee962ccd16e9c2f4bbab9
tree299085e14eecdb2711a202c434869fa9c5e7a855
parentb115673771f80d54a4f2c8441abe375d72f5b99e
mon/OSDMonitor: rework `osd create`

We're splitting the chunk of code from `prepare_command_impl()` into two
functions: one will validate if we can perform the command, and the
other will perform the update.

This will allow us to reuse the code in `osd new`.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h