Navigation Menu

Skip to content

Commit

Permalink
Validate pertiton_key correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 12, 2014
1 parent 26073a0 commit 6cac318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/catalog/base.rb
Expand Up @@ -307,7 +307,7 @@ def validate_date_range(value, name)
end

def validate_partition_key(value, name)
validate_parameter_type(String, value, "name")
validate_parameter_type(String, value, name)
return if value == "_key"
end

Expand Down
1 change: 1 addition & 0 deletions test/unit/catalog/test_version1.rb
Expand Up @@ -106,6 +106,7 @@ def setup
"workers" => 1,
"number_of_partitions" => 1,
"number_of_replicas" => 1,
"partition_key" => "_key",
"plugins" => [],
"ring" => {
"localhost:23041" => {
Expand Down

0 comments on commit 6cac318

Please sign in to comment.