[Groonga-commit] droonga/droonga-engine at ca27718 [master] Choose all slices by default if there is no option is given

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 15 22:10:18 JST 2015


YUKI Hiroshi	2015-04-15 22:10:18 +0900 (Wed, 15 Apr 2015)

  New Revision: ca27718c6b9c6870bbdf15fa44bda41eb9b1c93a
  https://github.com/droonga/droonga-engine/commit/ca27718c6b9c6870bbdf15fa44bda41eb9b1c93a

  Message:
    Choose all slices by default if there is no option is given

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

  Modified: lib/droonga/catalog/slices_volume.rb (+3 -2)
===================================================================
--- lib/droonga/catalog/slices_volume.rb    2015-04-15 22:00:54 +0900 (e419e0f)
+++ lib/droonga/catalog/slices_volume.rb    2015-04-15 22:10:18 +0900 (7eda769)
@@ -84,13 +84,14 @@ module Droonga
         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|
-------------- next part --------------
HTML����������������������������...
Descargar 



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