Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 2014 08:20:51 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362959 - in head/databases/leofs: . files
Message-ID:  <201407260820.s6Q8KpJD079634@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407260820.s6Q8KpJD079634>