[Groonga-commit] droonga/droonga-engine at 3a52048 [master] Add a new remote command set_effective_message_timestamp

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Fri Nov 21 12:32:57 JST 2014


YUKI Hiroshi	2014-11-21 12:32:57 +0900 (Fri, 21 Nov 2014)

  New Revision: 3a520480472d11b321915f7d47e671d2286225e2
  https://github.com/droonga/droonga-engine/commit/3a520480472d11b321915f7d47e671d2286225e2

  Message:
    Add a new remote command set_effective_message_timestamp

  Modified files:
    lib/droonga/command/remote.rb
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/remote.rb (+7 -0)
===================================================================
--- lib/droonga/command/remote.rb    2014-11-21 12:32:23 +0900 (ad4449c)
+++ lib/droonga/command/remote.rb    2014-11-21 12:32:57 +0900 (6b29713)
@@ -89,6 +89,13 @@ module Droonga
         end
       end
 
+      class SetEffectiveMessageTimestamp < Base
+        def process
+          status = NodeStatus.new
+          status.set(:effective_message_timestamp, @params["timestamp"])
+        end
+      end
+
       class Join < Base
         def process
           log("type = #{type}")

  Modified: lib/droonga/command/serf_event_handler.rb (+2 -0)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-11-21 12:32:23 +0900 (4e0de05)
+++ lib/droonga/command/serf_event_handler.rb    2014-11-21 12:32:57 +0900 (bda30cf)
@@ -72,6 +72,8 @@ module Droonga
           Remote::ChangeRole
         when "report_status"
           Remote::ReportStatus
+        when "set_effective_message_timestamp"
+          Remote::SetEffectiveMessageTimestamp
         when "join"
           Remote::Join
         when "set_replicas"
-------------- next part --------------
HTML����������������������������...
ダウンロード 



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