]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: set the profile and ruleset defaults early
authorLoic Dachary <loic@dachary.org>
Sun, 16 Mar 2014 20:11:56 +0000 (21:11 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 17 Mar 2014 23:23:42 +0000 (00:23 +0100)
commitf8aa1edae8d90fce4f5c6943f0f96d7b7b254ad1
treebda55620812b969ed67ab6630aceb044d4e16a24
parent57743447568d38568361350b28f6800c47177189
mon: set the profile and ruleset defaults early

The poolstr is removed from the prepare_pool_crush_ruleset prototype
because it no longer decides for the default ruleset, if it is not
omitted by the caller of osd pool create.

If no profile
  profile = default
If no ruleset and profile is default
  ruleset = erasure-code
If no ruleset and profile is not default
  ruleset = the name of the pool

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h