[Groonga-commit] droonga/droonga-engine at 9cb887d [master] Unregister new node if the joining operation is canceled

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Mar 26 20:13:39 JST 2015


YUKI Hiroshi	2015-03-26 20:13:39 +0900 (Thu, 26 Mar 2015)

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

  Message:
    Unregister new node if the joining operation is canceled

  Modified files:
    bin/droonga-engine-join

  Modified: bin/droonga-engine-join (+3 -0)
===================================================================
--- bin/droonga-engine-join    2015-03-26 20:11:58 +0900 (bc4865f)
+++ bin/droonga-engine-join    2015-03-26 20:13:39 +0900 (8b659ae)
@@ -253,6 +253,7 @@ class JoinCommand
                        "dataset" => @options[:dataset],
                        "hosts"   => [@options[:host]])
     wait_until_restarted(source_node)
+    @node_registered = true
   end
 
   def unregister_from_existing_nodes
@@ -262,6 +263,7 @@ class JoinCommand
                        "dataset" => @options[:dataset],
                        "hosts"   => [@options[:host]])
     wait_until_restarted(source_node)
+    @node_registered = false
   end
 
   def trap_signals
@@ -283,6 +285,7 @@ class JoinCommand
 
   def do_cancel
     #XXX we have to write more codes to cancel remote processes!
+    unregister_from_existing_nodes if @node_registered
     reset_node_role if @node_role_changed
   end
 
-------------- next part --------------
HTML����������������������������...
Download 



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