]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: pool create must not always create a ruleset 2506/head
authorLoic Dachary <loic-201408@dachary.org>
Tue, 16 Sep 2014 09:32:26 +0000 (11:32 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 16 Sep 2014 09:51:59 +0000 (11:51 +0200)
commit8b27997be90eddad930da30b38d6ad22d4621635
treece4a1a7cb5067472e08dc017c2af134a53eaf72c
parentd5084f3f863d2812be6defb0209be256f7d23d4b
mon: pool create must not always create a ruleset

The implicit creation of a ruleset when creating a pool is convenient
when nothing is specified. However, if the caller sets a ruleset name,
it should not implicitly create it but return ENOENT instead. Silently
creating a ruleset when there is a typo in the ruleset name is
confusing.

http://tracker.ceph.com/issues/9304 Fixes: #9304

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