]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: fix grammar
authorSage Weil <sage@newdream.net>
Mon, 6 Oct 2008 18:04:20 +0000 (11:04 -0700)
committerSage Weil <sage@newdream.net>
Mon, 6 Oct 2008 18:04:20 +0000 (11:04 -0700)
src/crush/grammar.h

index cfd34cf82bf58d3b778653a3195961eb563b2728..fbedaa7a162f22afacc6d3f787e3845b8bc7dd66 100644 (file)
@@ -102,7 +102,7 @@ struct crush_grammar : public grammar<crush_grammar>
       bucket = name >> name >> '{' >> !bucket_id >> bucket_alg >> *bucket_item >> '}';
       
       // rules
-      step_take = str_p("take") >> str_p("root");
+      step_take = str_p("take") >> name;
       step_choose = str_p("choose")
        >> ( str_p("indep") | str_p("firstn") )
        >> integer