[Groonga-commit] droonga/droonga-engine at ca17c93 [master] Restart node by remote command, not serf proxy

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Tue Mar 24 13:41:20 JST 2015


YUKI Hiroshi	2015-03-24 13:41:20 +0900 (Tue, 24 Mar 2015)

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

  Message:
    Restart node by remote command, not serf proxy

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

  Modified: lib/droonga/command/remote.rb (+1 -0)
===================================================================
--- lib/droonga/command/remote.rb    2015-03-24 13:29:29 +0900 (a0d493c)
+++ lib/droonga/command/remote.rb    2015-03-24 13:41:20 +0900 (3cd6151)
@@ -112,6 +112,7 @@ module Droonga
           log("old role: #{@serf.role}")
           @serf.role = @params["role"]
           log("new role: #{@serf.role}")
+          Restarter.restart
         end
       end
 

  Modified: lib/droonga/serf.rb (+0 -1)
===================================================================
--- lib/droonga/serf.rb    2015-03-24 13:29:29 +0900 (06117b0)
+++ lib/droonga/serf.rb    2015-03-24 13:41:20 +0900 (815b214)
@@ -148,7 +148,6 @@ module Droonga
       new_role ||= NodeMetadata::Role::SERVICE_PROVIDER
       set_tag("role", new_role)
       @node_metadata.role = new_role
-      Restarter.restart
     end
 
     def cluster_id
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index