[Groonga-commit] droonga/droonga-engine at 5217928 [master] Implement "join" command for Serf

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Aug 28 19:18:39 JST 2014


YUKI Hiroshi	2014-08-28 19:18:39 +0900 (Thu, 28 Aug 2014)

  New Revision: 521792859d04c8167ed9af7c74228e26dd5464af
  https://github.com/droonga/droonga-engine/commit/521792859d04c8167ed9af7c74228e26dd5464af

  Message:
    Implement "join" command for Serf

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+6 -0)
===================================================================
--- lib/droonga/serf.rb    2014-08-28 19:18:00 +0900 (7f49e0c)
+++ lib/droonga/serf.rb    2014-08-28 19:18:39 +0900 (dd5f32a)
@@ -94,6 +94,12 @@ module Droonga
       logger.trace("stop: done")
     end
 
+    def join(host)
+      ensure_serf
+      node = "#{host}:#{port}"
+      result= run_once("join", node)
+    end
+
     def send_query(query, payload)
       ensure_serf
       options = ["-format", "json"] + additional_options_from_payload(payload)
-------------- next part --------------
HTML����������������������������...
Download 



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