ceph/ceph — pull request #2382 by xiaoxichen (2014-09-03 03:31:04+00:00)
Title: Skip rule resolution when ruleid matches ruleset_id

Add a checking funtion into CrushWrapper::finalize(), this funtion
will check if current crush rules hoding the constraint that one rule
per ruleset and rule_id=ruleset_id.

If such a constraint holds, we set a flag(is_rule_id_matches_ruleset_id)
to true and then skip the rule resolution (which searches all rules for
a rule with the right ruleset and size).

Signed-off-by: Xiaoxi Chen