[Groonga-commit] droonga/droonga-engine at 5a897d6 [master] Set "messages_per_second" option for Drndump::Dumper

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Apr 10 13:49:11 JST 2015


YUKI Hiroshi	2015-04-10 13:49:11 +0900 (Fri, 10 Apr 2015)

  New Revision: 5a897d68690277bda1a2eeaeb4d069d2b0e64dca
  https://github.com/droonga/droonga-engine/commit/5a897d68690277bda1a2eeaeb4d069d2b0e64dca

  Message:
    Set "messages_per_second" option for Drndump::Dumper

  Modified files:
    lib/droonga/plugins/system/absorb_data.rb

  Modified: lib/droonga/plugins/system/absorb_data.rb (+4 -0)
===================================================================
--- lib/droonga/plugins/system/absorb_data.rb    2015-04-10 13:49:00 +0900 (9b9b630)
+++ lib/droonga/plugins/system/absorb_data.rb    2015-04-10 13:49:11 +0900 (efc2d9e)
@@ -25,6 +25,8 @@ module Droonga
       class AbsorbDataHandler < Droonga::Handler
         action.synchronous = true
 
+        DEFAULT_MESSAGES_PER_SECOND = 100
+
         class MissingHostParameter < BadRequest
           def initialize
             super("\"host\" must be specified.")
@@ -63,6 +65,8 @@ module Droonga
 
             :receiver_host => myself.host,
             :receiver_port => 0,
+
+            :messages_per_second => message["messagesPerSecond"] || DEFAULT_MESSAGES_PER_SECOND,
           }
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index