Navigation Menu

Skip to content

Commit

Permalink
Detect partitioned dataset correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 22, 2015
1 parent 1740fe8 commit 5eac50e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/droonga/catalog/version1.rb
Expand Up @@ -443,11 +443,7 @@ def all_nodes
end

def sliced?
self["ring"].each do |ring_key, part|
next unless part["partitions"].is_a?(Array)
return true if part["partitions"].size > 1
end
return false
self["ring"].keys.size > 1
end

private
Expand Down

0 comments on commit 5eac50e

Please sign in to comment.