]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crush/grammar.h
update sources to v12.1.2
[ceph.git] / ceph / src / crush / grammar.h
index 8fb28c877a40d6ee68fba493a69afc2d6018153b..42a6068b362ba1d1a1f45b1612a6879adbf24c09 100644 (file)
@@ -161,7 +161,7 @@ struct crush_grammar : public grammar<crush_grammar>
                                step_chooseleaf |
                                step_emit );
       crushrule = str_p("rule") >> !name >> '{'
-                          >> str_p("ruleset") >> posint
+                               >> (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