YUKI Hiroshi
null+****@clear*****
Thu Apr 23 17:39:57 JST 2015
YUKI Hiroshi 2015-04-23 17:39:57 +0900 (Thu, 23 Apr 2015) New Revision: e2deeaea578126c0c983e4d456e02ec04d36f1e3 https://github.com/droonga/droonga-engine/commit/e2deeaea578126c0c983e4d456e02ec04d36f1e3 Message: Detach timers correctly on shutdown Modified files: lib/droonga/engine.rb Modified: lib/droonga/engine.rb (+4 -4) =================================================================== --- lib/droonga/engine.rb 2015-04-23 17:26:03 +0900 (5c319e6) +++ lib/droonga/engine.rb 2015-04-23 17:39:57 +0900 (c67cf0c) @@ -81,10 +81,10 @@ module Droonga @cluster.shutdown on_finish = lambda do logger.trace("stop_gracefully/on_finish: start") + @export_last_processed_message_timestamp_observer.stop + export_last_processed_message_timestamp @dispatcher.stop_gracefully do @state.shutdown - @export_last_processed_message_timestamp_observer.stop - export_last_processed_message_timestamp yield end logger.trace("stop_gracefully/on_finish: done") @@ -102,11 +102,11 @@ module Droonga # It may be called after stop_gracefully. def stop_immediately logger.trace("stop_immediately: start") + @export_last_processed_message_timestamp_observer.stop + export_last_processed_message_timestamp @dispatcher.stop_immediately @cluster.shutdown @state.shutdown - @export_last_processed_message_timestamp_observer.stop - export_last_processed_message_timestamp logger.trace("stop_immediately: done") end -------------- next part -------------- HTML����������������������������...Download