[Groonga-commit] droonga/fluent-plugin-droonga at 9b313d7 [master] Calculate boundary to clear old subscribers

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Thu Oct 31 12:28:10 JST 2013


YUKI Hiroshi	2013-10-31 12:28:10 +0900 (Thu, 31 Oct 2013)

  New Revision: 9b313d773e65ce455b858edb6494235273a2afcc
  https://github.com/droonga/fluent-plugin-droonga/commit/9b313d773e65ce455b858edb6494235273a2afcc

  Message:
    Calculate boundary to clear old subscribers

  Modified files:
    lib/droonga/watcher.rb

  Modified: lib/droonga/watcher.rb (+2 -0)
===================================================================
--- lib/droonga/watcher.rb    2013-10-31 12:22:33 +0900 (e76d081)
+++ lib/droonga/watcher.rb    2013-10-31 12:28:10 +0900 (211d449)
@@ -19,6 +19,7 @@ module Droonga
   class Watcher
     EXACT_MATCH = false
     GARBAGE_COLLECTION_INTERVAL_SECONDS = 20 * 60 # 20 min
+    SUBSCRIBER_LIFETIME_SECONDS = 10 * 60 # 10 min
 
     def initialize(context)
       @context = context
@@ -185,6 +186,7 @@ module Droonga
 
     def clear_expired_subscribers
       # implement me!
+      boundary = Time.now - SUBSCRIBER_LIFETIME_SECONDS
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る