aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/leofs/Makefile1
-rw-r--r--databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl13
2 files changed, 14 insertions, 0 deletions
diff --git a/databases/leofs/Makefile b/databases/leofs/Makefile
index ca577f1e3067..9492435e42ff 100644
--- a/databases/leofs/Makefile
+++ b/databases/leofs/Makefile
@@ -3,6 +3,7 @@
PORTNAME= leofs
PORTVERSION= 1.0.2
+PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= trociny@FreeBSD.org
diff --git a/databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl b/databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl
new file mode 100644
index 000000000000..fe5371f31de5
--- /dev/null
+++ b/databases/leofs/files/patch-deps-leo_manager-src-leo_manager_cluster_monitor.erl
@@ -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,