]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: parse alg names that include a digit
authorSage Weil <sage@redhat.com>
Sat, 7 Mar 2015 01:43:11 +0000 (17:43 -0800)
committerSage Weil <sage@redhat.com>
Sat, 7 Mar 2015 01:43:11 +0000 (17:43 -0800)
commit61308cc4734928b146080bbb18e9bca27ec57a07
tree12a1eca285782846c3a1f66e9d7bf5f89b3ab21e
parent9e1c49c08716a89690e5aa664a0fc4fa415e9878
crush: parse alg names that include a digit

The str_p("straw2") won't parse straw2, it seems because the digit is throwing
it off.  Use the existing name rule instead which is more robust.  Note that
not constraining the alg value here is better anyway because instead of a
'cannot parse' error that is hard to debug we instead get a 'unknown alg foo'
error when doing the semantic pass.

Fixes: #11015
Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/grammar.h