[Groonga-commit] droonga/droonga-engine at 5eac50e [buffered-forward] Detect partitioned dataset correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jan 22 17:17:40 JST 2015


YUKI Hiroshi	2015-01-22 17:17:40 +0900 (Thu, 22 Jan 2015)

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

  Message:
    Detect partitioned dataset correctly

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

  Modified: lib/droonga/catalog/version1.rb (+1 -5)
===================================================================
--- lib/droonga/catalog/version1.rb    2015-01-22 17:02:51 +0900 (3d74601)
+++ lib/droonga/catalog/version1.rb    2015-01-22 17:17:40 +0900 (0319643)
@@ -443,11 +443,7 @@ module Droonga
         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
-------------- next part --------------
HTML����������������������������...
Download 



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