]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: fix inverted test in osd pool create 608/head
authorLoic Dachary <loic@dachary.org>
Wed, 11 Sep 2013 20:52:20 +0000 (22:52 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 19 Sep 2013 22:33:13 +0000 (00:33 +0200)
commitbcc1680ad2bcf52ba39a25686d831777e9554b01
treec7c72f4fadb31f317fc814b9a3368e732da42e01
parent5421d6da2ca34d122c1de8faec13522801fe77fb
mon: fix inverted test in osd pool create

When using the properties key=value only, the test was inverted
and an attempt to obtain a substring at index string::npos throws
an exception.

Add variations of osd pool create to qa/workunits/mon/pool_ops.sh
to assert the problem has been fixed and all code paths are used.

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

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