[Groonga-commit] droonga/droonga-engine at 6b78adf [master] Restart service for any schema change

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 29 20:00:02 JST 2014


YUKI Hiroshi	2014-05-29 20:00:02 +0900 (Thu, 29 May 2014)

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

  Message:
    Restart service for any schema change

  Modified files:
    lib/droonga/processor.rb

  Modified: lib/droonga/processor.rb (+4 -0)
===================================================================
--- lib/droonga/processor.rb    2014-05-29 17:32:14 +0900 (ec45c3c)
+++ lib/droonga/processor.rb    2014-05-29 20:00:02 +0900 (3b9d3d8)
@@ -15,6 +15,7 @@
 
 require "droonga/loggable"
 require "droonga/handler_runner"
+require "fileutils"
 
 module Droonga
   class Processor
@@ -46,6 +47,9 @@ module Droonga
         synchronous = @handler_runner.prefer_synchronous?(type)
         if @n_workers.zero? or synchronous
           @handler_runner.process(message)
+          #XXX Workaround to restart system by any schema change.
+          #    This should be done more smartly...
+          FileUtils.touch(Path.catalog.to_s)
         else
           @job_pusher.push(message)
         end
-------------- next part --------------
HTML����������������������������...
Download 



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