YUKI Hiroshi
null+****@clear*****
Thu Oct 31 12:31:32 JST 2013
YUKI Hiroshi 2013-10-31 12:31:32 +0900 (Thu, 31 Oct 2013) New Revision: 06264d2f98ba49b1c51c372c0bab77fc08092103 https://github.com/droonga/fluent-plugin-droonga/commit/06264d2f98ba49b1c51c372c0bab77fc08092103 Message: Use "periodical sweep" instead of "garbabage collection" in Sweeper Modified files: lib/droonga/sweeper.rb Modified: lib/droonga/sweeper.rb (+2 -2) =================================================================== --- lib/droonga/sweeper.rb 2013-10-31 12:30:33 +0900 (e7ff1df) +++ lib/droonga/sweeper.rb 2013-10-31 12:31:32 +0900 (7385f5e) @@ -17,7 +17,7 @@ module Droonga class Sweeper - GARBAGE_COLLECTION_INTERVAL_SECONDS = 20 * 60 # 20 min + PERIODICAL_SWEEP_INTERVAL_SECONDS = 20 * 60 # 20 min SUBSCRIBER_LIFETIME_SECONDS = 10 * 60 # 10 min def initialize(context) @@ -25,7 +25,7 @@ module Droonga end def activate_periodical_sleep(options={}) - interval = options[:interval] || GARBAGE_COLLECTION_INTERVAL_SECONDS + interval = options[:interval] || PERIODICAL_SWEEP_INTERVAL_SECONDS @sweeper_thread = Thread.new do while true sweep_expired_subscribers -------------- next part -------------- HTML����������������������������...Download