YUKI Hiroshi
null+****@clear*****
Wed Feb 12 17:31:37 JST 2014
YUKI Hiroshi 2014-02-12 17:31:37 +0900 (Wed, 12 Feb 2014) New Revision: 6cac31898eda7c4575d0b2ac52c737c6678d35fe https://github.com/droonga/fluent-plugin-droonga/commit/6cac31898eda7c4575d0b2ac52c737c6678d35fe Message: Validate pertiton_key correctly Modified files: lib/droonga/catalog/base.rb test/unit/catalog/test_version1.rb Modified: lib/droonga/catalog/base.rb (+1 -1) =================================================================== --- lib/droonga/catalog/base.rb 2014-02-12 17:30:22 +0900 (66f1987) +++ lib/droonga/catalog/base.rb 2014-02-12 17:31:37 +0900 (ec9bbcf) @@ -307,7 +307,7 @@ module Droonga end def validate_partition_key(value, name) - validate_parameter_type(String, value, "name") + validate_parameter_type(String, value, name) return if value == "_key" end Modified: test/unit/catalog/test_version1.rb (+1 -0) =================================================================== --- test/unit/catalog/test_version1.rb 2014-02-12 17:30:22 +0900 (927e8da) +++ test/unit/catalog/test_version1.rb 2014-02-12 17:31:37 +0900 (1c4960b) @@ -106,6 +106,7 @@ class CatalogTest < Test::Unit::TestCase "workers" => 1, "number_of_partitions" => 1, "number_of_replicas" => 1, + "partition_key" => "_key", "plugins" => [], "ring" => { "localhost:23041" => { -------------- next part -------------- HTML����������������������������...Download