[Groonga-commit] droonga/fluent-plugin-droonga at 5f9098e [master] Skip to sort if nothing is unified

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Dec 4 14:20:04 JST 2013


YUKI Hiroshi	2013-12-04 14:20:04 +0900 (Wed, 04 Dec 2013)

  New Revision: 5f9098efbd22dfa2a853787814100fe98f952c8f
  https://github.com/droonga/fluent-plugin-droonga/commit/5f9098efbd22dfa2a853787814100fe98f952c8f

  Message:
    Skip to sort if nothing is unified

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+2 -0)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2013-12-04 14:18:27 +0900 (18bbcd7)
+++ lib/droonga/plugin/collector/basic.rb    2013-12-04 14:20:04 +0900 (1aabc9a)
@@ -179,6 +179,7 @@ module Droonga
         end
       end
 
+      unless rest_unified_items.size == unified_items.size
       unified_items.sort! do |a, b|
         if compare(a, b, options[:operators])
           -1
@@ -186,6 +187,7 @@ module Droonga
           1
         end
       end
+      end
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
下载 



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