[Groonga-commit] droonga/fluent-plugin-droonga at 1030360 [master] Start processor before forking workers

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 26 14:42:46 JST 2013


Kouhei Sutou	2013-11-26 14:42:46 +0900 (Tue, 26 Nov 2013)

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

  Message:
    Start processor before forking workers
    
    Processor creates job queue. It shuold be created before workers start
    to pul messages from job queue.

  Modified files:
    lib/droonga/partition.rb

  Modified: lib/droonga/partition.rb (+2 -2)
===================================================================
--- lib/droonga/partition.rb    2013-11-26 12:27:22 +0900 (e54581d)
+++ lib/droonga/partition.rb    2013-11-26 14:42:46 +0900 (97614ba)
@@ -31,14 +31,14 @@ module Droonga
     end
 
     def start
-      start_supervisor if @n_workers > 0
       @processor.start
+      start_supervisor if @n_workers > 0
     end
 
     def shutdown
       $log.trace("partition: shutdown: start")
-      @processor.shutdown
       shutdown_supervisor if @supervisor
+      @processor.shutdown
       $log.trace("partition: shutdown: done")
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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