[Groonga-commit] droonga/fluent-plugin-droonga at c762745 [master] Don't touch collectors in planner

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 20 15:56:21 JST 2013


Kouhei Sutou	2013-12-20 15:56:21 +0900 (Fri, 20 Dec 2013)

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

  Message:
    Don't touch collectors in planner

  Modified files:
    lib/droonga/dispatcher.rb

  Modified: lib/droonga/dispatcher.rb (+3 -3)
===================================================================
--- lib/droonga/dispatcher.rb    2013-12-20 15:50:42 +0900 (a492cd8)
+++ lib/droonga/dispatcher.rb    2013-12-20 15:56:21 +0900 (dcdfce2)
@@ -130,7 +130,8 @@ module Droonga
         components = message["components"]
         if components
           planner = Planner.new(self, components)
-          collector = planner.get_collector(id)
+          collector = planner.create_collector(id)
+          @collectors[id] = collector
         else
           #todo: take cases receiving result before its query into account
         end
@@ -209,7 +210,7 @@ module Droonga
         @components = components
       end
 
-      def get_collector(id)
+      def create_collector(id)
         resolve_descendants
         tasks = []
         inputs = {}
@@ -230,7 +231,6 @@ module Droonga
           end
         end
         collector = Collector.new(id, @dispatcher, @components, tasks, inputs)
-        @dispatcher.collectors[id] = collector
         return collector
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



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