Navigation Menu

Skip to content

Commit

Permalink
Choose all slices by default if there is no option is given
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 15, 2015
1 parent f0c3140 commit ca27718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/droonga/catalog/slices_volume.rb
Expand Up @@ -84,13 +84,14 @@ def compute_routes(message, active_nodes)
slices = []
case message["type"]
when "broadcast"
slices = select_slices(:all)
slices = select_slices
when "scatter"
record = message["record"]
if record
slices = [choose_slice(record)]
else
slices = select_slices(message["slice"].to_sym)
slice_option = message["slice"] || "all"
slices = select_slices(slice_option.to_sym)
end
end
slices.each do |slice|
Expand Down

0 comments on commit ca27718

Please sign in to comment.