YUKI Hiroshi
null+****@clear*****
Thu Oct 31 12:09:42 JST 2013
YUKI Hiroshi 2013-10-31 12:09:42 +0900 (Thu, 31 Oct 2013) New Revision: 7498b33fad3b5a0b61f153878cdc8a4a3cf362a1 https://github.com/droonga/fluent-plugin-droonga/commit/7498b33fad3b5a0b61f153878cdc8a4a3cf362a1 Message: Set last_modified for new subscriber correctly Modified files: lib/droonga/watcher.rb Modified: lib/droonga/watcher.rb (+3 -3) =================================================================== --- lib/droonga/watcher.rb 2013-10-31 12:08:59 +0900 (266cf73) +++ lib/droonga/watcher.rb 2013-10-31 12:09:42 +0900 (ba45cff) @@ -33,8 +33,7 @@ module Droonga query_record = query_table[query] unless query_record keywords = pick_keywords([], condition) - query_record = query_table.add(query, :keywords => keywords, - :last_modified => Time.now) + query_record = query_table.add(query, :keywords => keywords) end subscriber_table = @context["Subscriber"] subscriber_record = subscriber_table[subscriber] @@ -48,7 +47,8 @@ module Droonga else subscriber_table.add(subscriber, :subscriptions => [query_record], - :route => route) + :route => route, + :last_modified => Time.now) end end -------------- next part -------------- HTML����������������������������...Download