YUKI Hiroshi
null+****@clear*****
Wed Apr 29 01:14:19 JST 2015
YUKI Hiroshi 2015-04-29 01:14:19 +0900 (Wed, 29 Apr 2015) New Revision: 6f6c71dd6bfbd15f914454eb58ef3ade1c094b14 https://github.com/droonga/droonga-engine/commit/6f6c71dd6bfbd15f914454eb58ef3ade1c094b14 Message: Overwrite last message timestamp by newer one if newer message is already processed Modified files: lib/droonga/engine.rb Modified: lib/droonga/engine.rb (+4 -1) =================================================================== --- lib/droonga/engine.rb 2015-04-29 00:41:40 +0900 (d7965d5) +++ lib/droonga/engine.rb 2015-04-29 01:14:19 +0900 (f9bfae2) @@ -144,7 +144,8 @@ module Droonga end def save_last_message_timestamp - logger.trace("save_last_message_timestamp: start") + logger.trace("save_last_message_timestamp: start", + :current => @last_message_timestamp) Timestamp.last_message_timestamp = @last_message_timestamp logger.trace("save_last_message_timestamp: done") end @@ -158,6 +159,8 @@ module Droonga if @last_message_timestamp.nil? or timestamp > @last_message_timestamp @last_message_timestamp = timestamp + else + Timestamp.last_message_timestamp = @last_message_timestamp end end end -------------- next part -------------- HTML����������������������������... 다운로드