admin: speed up get_domains for many domains
commita309f22f835afe0e6be0e4e2f1a13eaead7434f2
authorEric Wong <normalperson@yhbt.net>
Tue, 2 Oct 2012 02:53:05 +0000 (1 19:53 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 2 Oct 2012 03:01:35 +0000 (1 20:01 -0700)
tree4f2993378a92f4e6cbe8fc46ec100ba8d8a90439
parent088a8541946b8e5379c1076c759ea56ab9bd7f0b
admin: speed up get_domains for many domains

On an installation with 3000+ domains, get_domains gets
bottlenecked by calling #grep on the keys of a hash.  Allow
specifying a "want" directive to filter in data we expect
(instead of grepping blindly)
lib/mogilefs/admin.rb