]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: override the default only if the plugin match
authorLoic Dachary <loic-201408@dachary.org>
Sun, 24 Aug 2014 18:57:16 +0000 (20:57 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Fri, 29 Aug 2014 17:38:57 +0000 (19:38 +0200)
commitb517ca4888bfe2f453c658b7a7e0a9d35349e728
tree014bf9283f59fde2127e9293916f41c9eb7d0f29
parent4670d9e6aad6c9238eeba43c1846764e751b45b6
erasure-code: override the default only if the plugin match

When setting a new erasure coded profile, the key/value of the default
profile are re-used so that ruleset-failure-domain=osd can be overridden
like so:

        ceph osd erasure-code-profile set ruleset-failure-domain=osd

This is however not appropriate if the plugin is different from the
defaut plugin (for instance LRC instead of jerasure) because the
parameters are not the same.

If the plugin is changed, the default profile is not reused.

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