[Groonga-commit] droonga/droonga-engine at dd758b0 [buffered-forward] Forbid to restart immediately twice

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Mar 27 20:05:26 JST 2015


YUKI Hiroshi	2015-03-27 20:05:26 +0900 (Fri, 27 Mar 2015)

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

  Message:
    Forbid to restart immediately twice

  Modified files:
    lib/droonga/command/droonga_engine.rb

  Modified: lib/droonga/command/droonga_engine.rb (+3 -0)
===================================================================
--- lib/droonga/command/droonga_engine.rb    2015-03-27 20:05:04 +0900 (e50e979)
+++ lib/droonga/command/droonga_engine.rb    2015-03-27 20:05:26 +0900 (842769d)
@@ -514,10 +514,13 @@ module Droonga
         end
 
         def restart_immediately
+          return if @restarting
+          @restarting = true
           old_service_runner = @service_runner
           reopen_log_file
           @service_runner = run_service
           old_service_runner.stop_immediately
+          @restarting = false
         end
 
         def restart_self
-------------- next part --------------
HTML����������������������������...
Download 



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