YUKI Hiroshi
null+****@clear*****
Tue Apr 28 19:18:26 JST 2015
YUKI Hiroshi 2015-04-28 19:18:26 +0900 (Tue, 28 Apr 2015) New Revision: eb1cd73d6be24cff0ed131145f8dc0e8bf1ec5cc https://github.com/droonga/droonga-engine/commit/eb1cd73d6be24cff0ed131145f8dc0e8bf1ec5cc Message: Simplify Modified files: lib/droonga/engine.rb Modified: lib/droonga/engine.rb (+1 -3) =================================================================== --- lib/droonga/engine.rb 2015-04-28 18:19:50 +0900 (b3716a4) +++ lib/droonga/engine.rb 2015-04-28 19:18:26 +0900 (1d99c66) @@ -146,9 +146,7 @@ module Droonga def export_last_message_timestamp_to_cluster logger.trace("export_last_message_timestamp_to_cluster: start") - unless @last_message_timestamp - @last_message_timestamp = read_last_message_timestamp - end + @last_message_timestamp ||= read_last_message_timestamp if @last_message_timestamp timestamp = @last_message_timestamp serf = Serf.new(@name) -------------- next part -------------- HTML����������������������������... Descargar