]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: pool create erasure implicit ruleset creation
authorLoic Dachary <loic@dachary.org>
Mon, 3 Mar 2014 14:25:21 +0000 (15:25 +0100)
committerLoic Dachary <loic@dachary.org>
Mon, 17 Mar 2014 08:48:02 +0000 (09:48 +0100)
commitb7db487a64e878d5f7aaaba68bbe2a8adc074fff
treea38a83ad77809e7e5f4dfdca32ed9de2b966694b
parent32e122bdf5ea96992653511598dbd0fcfe925507
mon: pool create erasure implicit ruleset creation

If the crush_ruleset parameter is missing, set it to the pool name.

If the crush_ruleset parameter is set to a name that does not match any
of the existing rulesets, create one using the pool creation parameters.

If the ruleset exists and is in the pending map or if the ruleset was
just created (meaning it exists in the pending map), the
prepare_pool_crush_ruleset method returns EAGAIN so that the pool
creation message is retried after the pending map is proposed.

If the ruleset exists, it is used to initialize the newly created pool,
as before.

http://tracker.ceph.com/issues/7571 fixes #7571

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