]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crush/grammar.h
import quincy beta 17.1.0
[ceph.git] / ceph / src / crush / grammar.h
index 582e502e64044466ae1623800f397ca088330ffd..b5c356a49e17e8bafc9c18188a6fecf08e643b72 100644 (file)
@@ -170,9 +170,9 @@ struct crush_grammar : public boost::spirit::grammar<crush_grammar>
                                step_emit );
       crushrule = str_p("rule") >> !name >> '{'
                                >> (str_p("id") | str_p("ruleset")) >> posint
-                          >> str_p("type") >> ( str_p("replicated") | str_p("erasure") )
-                          >> str_p("min_size") >> posint
-                          >> str_p("max_size") >> posint
+                               >> str_p("type") >> ( str_p("replicated") | str_p("erasure") )
+                               >> !(str_p("min_size") >> posint)
+                               >> !(str_p("max_size") >> posint)
                           >> +step
                           >> '}';