forked from pool/ocfs2-tools
update to be compatible with corosync 2.3.x OBS-URL: https://build.opensuse.org/request/show/185215 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=60
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 1b81ab8b660db633aff609bfae4609efe24b9b93 Mon Sep 17 00:00:00 2001
|
|
From: Goldwyn Rodrigues <goldwyn@localhost.localdomain>
|
|
Date: Sat, 27 Jul 2013 14:28:48 -0500
|
|
Subject: [PATCH 3/5] Hard-code protocol versions.
|
|
|
|
This is just a work around. Protocol detection needs some work.
|
|
---
|
|
ocfs2_controld/main.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
Index: ocfs2-tools-1.8.2+git.1361836695.ff84eb5/ocfs2_controld/main.c
|
|
===================================================================
|
|
--- ocfs2-tools-1.8.2+git.1361836695.ff84eb5.orig/ocfs2_controld/main.c 2013-07-31 08:21:50.088759215 -0500
|
|
+++ ocfs2-tools-1.8.2+git.1361836695.ff84eb5/ocfs2_controld/main.c 2013-07-31 08:22:27.023854129 -0500
|
|
@@ -617,9 +617,15 @@ static void cpg_joined(int first)
|
|
log_debug("CPG is live, we are %s first daemon",
|
|
first ? "the" : "not the");
|
|
|
|
+ daemon_running_proto.pv_major = 1;
|
|
+ daemon_running_proto.pv_minor = 0;
|
|
+
|
|
log_debug("Daemon protocol is %d.%d",
|
|
daemon_running_proto.pv_major,
|
|
daemon_running_proto.pv_minor);
|
|
+
|
|
+ fs_running_proto.pv_major = 1;
|
|
+ fs_running_proto.pv_minor = 0;
|
|
log_debug("fs protocol is %d.%d",
|
|
fs_running_proto.pv_major, fs_running_proto.pv_minor);
|
|
|