config: Wrap MatchNameComponent, reduce lock duration
authorMichael Hanselmann <hansmi@google.com>
Fri, 11 Mar 2011 16:29:41 +0000 (17:29 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 11 Mar 2011 16:35:28 +0000 (17:35 +0100)
commitfe698b380fcf1919545636801aae3350339e8564
tree926483be30c135415d329d9a63c2e5cf96d59274
parent8e7078e013315055ec2d44635e92871042d28bf1
config: Wrap MatchNameComponent, reduce lock duration

- Remove duplication by merging two MatchNameComponent into a wrapper
- Reduce lock duration by getting list of names under lock and then
  matching names without the lock
- Also, ExpandNodeName's docstring is fixed.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/config.py