YUKI Hiroshi
null+****@clear*****
Wed Feb 12 15:19:36 JST 2014
YUKI Hiroshi 2014-02-12 15:19:36 +0900 (Wed, 12 Feb 2014) New Revision: c09443ea15364879911f363bee0b18d0241ae3aa https://github.com/droonga/fluent-plugin-droonga/commit/c09443ea15364879911f363bee0b18d0241ae3aa Message: Validate "workers" of datasets Modified files: lib/droonga/catalog/base.rb Modified: lib/droonga/catalog/base.rb (+6 -0) =================================================================== --- lib/droonga/catalog/base.rb 2014-02-12 14:26:23 +0900 (e2b01cf) +++ lib/droonga/catalog/base.rb 2014-02-12 15:19:36 +0900 (b1ce9de) @@ -223,6 +223,12 @@ module Droonga raise SmallerThanOne.new("#{name}.number_of_replicas", n_replicas, @path) end + n_workers = dataset["workers"] + validate_parameter_type(n_workers, "#{name}.workers", Integer) + if n_workers < 0 + raise NegativeNumber.new("#{name}.workers", n_workers, @path) + end + validate_parameter_type(dataset["ring"], "#{name}.ring", Hash) -------------- next part -------------- HTML����������������������������...Download