Package clean up + add fix for quorum engine

This commit is contained in:
Fabio M. Di Nitto 2009-02-23 09:32:40 +00:00
parent 3a05a3ccec
commit 6759e46420
3 changed files with 31 additions and 2 deletions

23
corosync-trunk_r1774.diff Normal file
View File

@ -0,0 +1,23 @@
Index: exec/vsf_quorum.c
===================================================================
--- exec/vsf_quorum.c (revision 1773)
+++ exec/vsf_quorum.c (revision 1774)
@@ -119,12 +119,14 @@
memcpy(&quorum_ring_id, ring_id, sizeof (quorum_ring_id));
quorum_view_list_entries = view_list_entries;
+
+ /* Tell sync() only if there is a new ring_id (ie this is not a 'fake' quorum event) */
+ if (memcmp(&quorum_ring_id, ring_id, sizeof (quorum_ring_id))) {
+ sync_primary_callback_fn(view_list, view_list_entries,
+ primary_designated, ring_id);
+ }
memcpy(quorum_view_list, view_list, sizeof(unsigned int)*view_list_entries);
- /* Tell sync() */
- sync_primary_callback_fn(view_list, view_list_entries,
- primary_designated, &quorum_ring_id);
-
/* Tell internal listeners */
send_internal_notification();

View File

@ -3,12 +3,13 @@
Name: corosync Name: corosync
Summary: The Corosync Cluster Engine and Application Programming Interfaces Summary: The Corosync Cluster Engine and Application Programming Interfaces
Version: 0.93 Version: 0.93
Release: 1%{?alphatag:.%{alphatag}}%{?dist} Release: 2%{?alphatag:.%{alphatag}}%{?dist}
License: BSD License: BSD
Group: System Environment/Base Group: System Environment/Base
URL: http://www.openais.org URL: http://www.openais.org
Source0: http://developer.osdl.org/dev/openais/downloads/corosync-%{version}/corosync-%{version}.tar.gz Source0: http://developer.osdl.org/dev/openais/downloads/corosync-%{version}/corosync-%{version}.tar.gz
Patch0: gcc-44-fix.diff Patch0: corosync-trunk_r1767.diff
Patch1: corosync-trunk_r1774.diff
# Runtime bits # Runtime bits
Requires: corosynclib = %{version}-%{release} Requires: corosynclib = %{version}-%{release}
@ -25,6 +26,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%prep %prep
%setup -q -n corosync-%{version} %setup -q -n corosync-%{version}
%patch0 -p0 %patch0 -p0
%patch1 -p0
%build %build
@ -186,6 +188,10 @@ The Corosync Cluster Engine APIs.
%{_mandir}/man8/votequorum_overview.8* %{_mandir}/man8/votequorum_overview.8*
%changelog %changelog
* Mon Feb 23 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-2
- Rename gcc-4.4 patch to match svn commit (r1767).
- Backport patch from trunk (commit r1774) to fix quorum engine.
* Thu Feb 19 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-1 * Thu Feb 19 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.93-1
- New upstream release. - New upstream release.
- Drop alphatag from spec file. - Drop alphatag from spec file.