[Groonga-commit] droonga/droonga-engine at 4e42cfb [master] engine: use graceful stop

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Sep 6 00:11:16 JST 2014


Kouhei Sutou	2014-09-06 00:11:16 +0900 (Sat, 06 Sep 2014)

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

  Message:
    engine: use graceful stop

  Modified files:
    lib/droonga/engine.rb

  Modified: lib/droonga/engine.rb (+4 -3)
===================================================================
--- lib/droonga/engine.rb    2014-09-06 00:10:59 +0900 (c47ebac)
+++ lib/droonga/engine.rb    2014-09-06 00:11:16 +0900 (b944e22)
@@ -59,9 +59,10 @@ module Droonga
       on_finish = lambda do
         logger.trace("stop_gracefully/on_finish: start")
         output_last_processed_timestamp
-        @dispatcher.shutdown
-        @state.shutdown
-        yield
+        @dispatcher.stop_gracefully do
+          @state.shutdown
+          yield
+        end
         logger.trace("stop_gracefully/on_finish: done")
       end
       if****@state*****_session?
-------------- next part --------------
HTML����������������������������...
Download 



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