svn commit: r362959 - in head/databases/leofs: . files
Mikolaj Golub
trociny at FreeBSD.org
Sat Jul 26 08:20:51 UTC 2014
Author: trociny
Date: Sat Jul 26 08:20:50 2014
New Revision: 362959
URL: http://svnweb.freebsd.org/changeset/ports/362959
QAT: https://qat.redports.org/buildarchive/r362959/
Log:
Fix "Could not get redundancy" errors after the storage node restart, by
making the manager automatically send redundancy configuration to
storage node after restart.
Added:
head/databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl (contents, props changed)
Modified:
head/databases/leofs/Makefile
Modified: head/databases/leofs/Makefile
==============================================================================
--- head/databases/leofs/Makefile Sat Jul 26 07:23:15 2014 (r362958)
+++ head/databases/leofs/Makefile Sat Jul 26 08:20:50 2014 (r362959)
@@ -3,6 +3,7 @@
PORTNAME= leofs
PORTVERSION= 1.0.2
+PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= trociny at FreeBSD.org
Added: head/databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl Sat Jul 26 08:20:50 2014 (r362959)
@@ -0,0 +1,13 @@
+Send redundancy configuration to storage node redundant manager on
+synchronization after the node restart.
+
+--- deps/leo_manager/src/leo_manager_cluster_monitor.erl.orig 2014-05-09 12:36:43.000000000 +0300
++++ deps/leo_manager/src/leo_manager_cluster_monitor.erl 2014-07-22 20:31:37.000000000 +0300
+@@ -466,6 +466,7 @@
+ %% synchronize member and ring
+ catch leo_manager_api:synchronize(?CHECKSUM_MEMBER, Node),
+ catch leo_manager_api:synchronize(?CHECKSUM_RING, Node),
++ catch leo_manager_api:recover(?RECOVER_BY_RING, Node, true),
+ ok;
+
+ register_fun_2({ok, [#node_state{state = ?STATE_DETACHED}|_]}, #registration{node = Node,
More information about the svn-ports-head
mailing list