[Groonga-commit] droonga/droonga-engine at 5448fea [master] Don't process join command if the node has been a member.

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Sun Jun 29 01:49:32 JST 2014


YUKI Hiroshi	2014-06-29 01:49:32 +0900 (Sun, 29 Jun 2014)

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

  Message:
    Don't process join command if the node has been a member.

  Modified files:
    bin/droonga-engine-join

  Modified: bin/droonga-engine-join (+5 -0)
===================================================================
--- bin/droonga-engine-join    2014-06-29 01:46:11 +0900 (131bd1c)
+++ bin/droonga-engine-join    2014-06-29 01:49:32 +0900 (1254f1b)
@@ -93,6 +93,11 @@ unless dataset
           "--replica-source-host option."
 end
 
+if generator.dataset_for_host(options.joining_host)
+  raise "The joining node is already a member of the cluster. " +
+          "You cannot join a member twice."
+end
+
 options.tag  = dataset.tag
 options.port = dataset.port
 
-------------- next part --------------
HTML����������������������������...
Download 



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