[Groonga-commit] droonga/droonga-engine at 909009f [master] Save last processed message timestamp later as possible

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 23 13:31:28 JST 2015


YUKI Hiroshi	2015-04-23 13:31:28 +0900 (Thu, 23 Apr 2015)

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

  Message:
    Save last processed message timestamp later as possible

  Modified files:
    lib/droonga/engine.rb

  Modified: lib/droonga/engine.rb (+2 -2)
===================================================================
--- lib/droonga/engine.rb    2015-04-23 13:30:52 +0900 (1447df8)
+++ lib/droonga/engine.rb    2015-04-23 13:31:28 +0900 (d0c4b86)
@@ -76,9 +76,9 @@ module Droonga
       @cluster.shutdown
       on_finish = lambda do
         logger.trace("stop_gracefully/on_finish: start")
-        save_last_processed_message_timestamp
         @dispatcher.stop_gracefully do
           @state.shutdown
+          save_last_processed_message_timestamp
           yield
         end
         logger.trace("stop_gracefully/on_finish: done")
@@ -96,10 +96,10 @@ module Droonga
     # It may be called after stop_gracefully.
     def stop_immediately
       logger.trace("stop_immediately: start")
-      save_last_processed_message_timestamp
       @dispatcher.stop_immediately
       @cluster.shutdown
       @state.shutdown
+      save_last_processed_message_timestamp
       logger.trace("stop_immediately: done")
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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