[Groonga-commit] droonga/fluent-plugin-droonga at 696ea38 [master] Check existence of "ring"

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 19:14:54 JST 2014


YUKI Hiroshi	2014-02-12 19:14:54 +0900 (Wed, 12 Feb 2014)

  New Revision: 696ea386254a1739a68ec0242d8feb7057fc3539
  https://github.com/droonga/fluent-plugin-droonga/commit/696ea386254a1739a68ec0242d8feb7057fc3539

  Message:
    Check existence of "ring"

  Modified files:
    lib/droonga/catalog/base.rb

  Modified: lib/droonga/catalog/base.rb (+4 -2)
===================================================================
--- lib/droonga/catalog/base.rb    2014-02-12 19:13:00 +0900 (1999836)
+++ lib/droonga/catalog/base.rb    2014-02-12 19:14:54 +0900 (ff43600)
@@ -291,8 +291,10 @@ module Droonga
         end
 
         do_validation do
-          validate_parameter_type(Hash, dataset["ring"], "#{name}.ring")
-          dataset["ring"].each do |key, value|
+          ring = dataset["ring"]
+          validate_required_parameter(ring, "#{name}.ring")
+          validate_parameter_type(Hash, ring, "#{name}.ring")
+          ring.each do |key, value|
             validate_ring(value, "#{name}.ring.#{key}")
           end
         end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index