]> git.proxmox.com Git - mirror_corosync.git/log
mirror_corosync.git
15 years agochange some char * to const char * to match usage in system in lcr.
Steven Dake [Tue, 10 Mar 2009 11:57:21 +0000 (11:57 +0000)]
change some char * to const char * to match usage in system in lcr.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1823 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix const qualifiers in lcr_ifact.c.
Steven Dake [Tue, 10 Mar 2009 11:53:43 +0000 (11:53 +0000)]
Fix const qualifiers in lcr_ifact.c.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1822 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix missing prototypes in totempg.c.
Steven Dake [Tue, 10 Mar 2009 11:45:00 +0000 (11:45 +0000)]
Fix missing prototypes in totempg.c.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1821 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix missing prototypes in totemmrp.
Steven Dake [Tue, 10 Mar 2009 11:42:10 +0000 (11:42 +0000)]
Fix missing prototypes in totemmrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1820 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix missing prototypes and mismatched prototypes in totemmrp.
Steven Dake [Tue, 10 Mar 2009 11:40:12 +0000 (11:40 +0000)]
Fix missing prototypes and mismatched prototypes in totemmrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1819 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd missing hdb_handle_put in totemsrp and handle errors in mkdir and
Steven Dake [Tue, 10 Mar 2009 11:30:34 +0000 (11:30 +0000)]
Add missing hdb_handle_put in totemsrp and handle errors in mkdir and
chdir properly.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1818 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove string literal warnings from totemsrp.
Steven Dake [Tue, 10 Mar 2009 11:23:57 +0000 (11:23 +0000)]
Remove string literal warnings from totemsrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1817 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd missing prototypes in totemsrp.
Steven Dake [Tue, 10 Mar 2009 11:21:23 +0000 (11:21 +0000)]
Add missing prototypes in totemsrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1816 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove pointer math warnings from totemsrp.
Steven Dake [Tue, 10 Mar 2009 11:14:28 +0000 (11:14 +0000)]
Remove pointer math warnings from totemsrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1815 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoDefine undefined prototypes
Steven Dake [Tue, 10 Mar 2009 11:08:49 +0000 (11:08 +0000)]
Define undefined prototypes

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1814 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove string literal warnings from totemrrp.
Steven Dake [Tue, 10 Mar 2009 11:04:12 +0000 (11:04 +0000)]
Remove string literal warnings from totemrrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1813 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove const warnings from main.c.
Steven Dake [Tue, 10 Mar 2009 10:35:14 +0000 (10:35 +0000)]
Remove const warnings from main.c.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1812 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove type casting to (char *) in logsys.h.
Steven Dake [Tue, 10 Mar 2009 10:32:09 +0000 (10:32 +0000)]
Remove type casting to (char *) in logsys.h.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1811 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove pointer math from totempg.
Steven Dake [Tue, 10 Mar 2009 10:12:52 +0000 (10:12 +0000)]
Remove pointer math from totempg.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1810 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove pointer math warnings from totemnet.
Steven Dake [Tue, 10 Mar 2009 10:09:43 +0000 (10:09 +0000)]
Remove pointer math warnings from totemnet.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1809 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove const warnings in totemip code.
Steven Dake [Tue, 10 Mar 2009 10:05:40 +0000 (10:05 +0000)]
Remove const warnings in totemip code.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1808 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoQuorum checks the ring ID is new before initiating a sync. Unfortunately
Christine Caulfield [Tue, 10 Mar 2009 09:58:07 +0000 (09:58 +0000)]
Quorum checks the ring ID is new before initiating a sync. Unfortunately
it copies the ring ID BEFORE checking it so there is always a match.

Sigh

This patch fixes it.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1807 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove const warnings relating to logsys global definitions.
Steven Dake [Tue, 10 Mar 2009 09:48:34 +0000 (09:48 +0000)]
Remove const warnings relating to logsys global definitions.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1806 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove logsys warnings.
Steven Dake [Tue, 10 Mar 2009 09:40:54 +0000 (09:40 +0000)]
Remove logsys warnings.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1805 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove const warnings in totempg.
Steven Dake [Tue, 10 Mar 2009 09:34:20 +0000 (09:34 +0000)]
Remove const warnings in totempg.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1804 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove const warnings from totemsrp.
Steven Dake [Tue, 10 Mar 2009 09:30:29 +0000 (09:30 +0000)]
Remove const warnings from totemsrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1803 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove qualifier warnings regarding totemrrp.
Steven Dake [Tue, 10 Mar 2009 09:25:43 +0000 (09:25 +0000)]
Remove qualifier warnings regarding totemrrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1802 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove const/nonconst assignment warnings in totemnet.
Steven Dake [Tue, 10 Mar 2009 09:22:08 +0000 (09:22 +0000)]
Remove const/nonconst assignment warnings in totemnet.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1801 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove leftover from automake merge.
Steven Dake [Tue, 10 Mar 2009 09:00:15 +0000 (09:00 +0000)]
Remove leftover from automake merge.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1800 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd missing committed file for automake.
Steven Dake [Tue, 10 Mar 2009 08:39:48 +0000 (08:39 +0000)]
Add missing committed file for automake.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1799 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAutomake. The journey begins.
Steven Dake [Tue, 10 Mar 2009 08:35:41 +0000 (08:35 +0000)]
Automake.  The journey begins.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1798 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd logsys_format_get to logsys API.
Fabio M. Di Nitto [Tue, 10 Mar 2009 08:03:50 +0000 (08:03 +0000)]
Add logsys_format_get to logsys API.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1797 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agologsys_format_set should use its own internal copy of format_buffer
Fabio M. Di Nitto [Tue, 10 Mar 2009 07:11:17 +0000 (07:11 +0000)]
logsys_format_set should use its own internal copy of format_buffer

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1796 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoCleanup logsys format init around to use default settings
Fabio M. Di Nitto [Mon, 9 Mar 2009 12:59:40 +0000 (12:59 +0000)]
Cleanup logsys format init around to use default settings

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1795 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoThe IPC patch broke CFG shutdown in several places, this patches fixes
Christine Caulfield [Fri, 6 Mar 2009 10:07:35 +0000 (10:07 +0000)]
The IPC patch broke CFG shutdown in several places, this patches fixes
all of them.

In particular, cfg_try_shutdown asks all applications that are
registered for callbacks if they approve the shutdown. This caused a bit
of a re-entrancy problem because it also asked the process that called
for the shutdown! The patch causes cfg to only ask OTHER applications in
the assumption that any application that calls
corosync_cfg_tryshutdown() will approve of the action :-)

In addition it adds the response to cfg_replyto_shutdown which was
missing (it couldn't be used with the old system but is mandatory now),
and removes a double-free in the library finalise code.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1794 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd reserve/release functionality to totem to reserve message queue
Steven Dake [Fri, 6 Mar 2009 07:38:34 +0000 (07:38 +0000)]
Add reserve/release functionality to totem to reserve message queue
space.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1793 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAllow logsys_format_set to reset to default.
Fabio M. Di Nitto [Fri, 6 Mar 2009 07:09:24 +0000 (07:09 +0000)]
Allow logsys_format_set to reset to default.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1792 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoUse list_del on process info in the condition that lib_exit_fn is called
Steven Dake [Fri, 6 Mar 2009 02:42:48 +0000 (02:42 +0000)]
Use list_del on process info in the condition that lib_exit_fn is called
to prevent segfault from processes later processing that list entry.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1791 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agologsys: re-add support for timestamp that was lost in the
Fabio M. Di Nitto [Wed, 4 Mar 2009 10:14:36 +0000 (10:14 +0000)]
logsys: re-add support for timestamp that was lost in the
upgrade from v1 to v2

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1790 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix logsys_set_format by updating the right bits
Fabio M. Di Nitto [Wed, 4 Mar 2009 10:13:26 +0000 (10:13 +0000)]
Fix logsys_set_format by updating the right bits

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1789 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix uninitialized memory. Spotted by valgrind
Fabio M. Di Nitto [Tue, 3 Mar 2009 03:57:37 +0000 (03:57 +0000)]
Fix uninitialized memory. Spotted by valgrind

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1788 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRework a bit of how lib_exit_fn works so that reference counts may be
Steven Dake [Tue, 3 Mar 2009 00:58:16 +0000 (00:58 +0000)]
Rework a bit of how lib_exit_fn works so that reference counts may be
used in the exit functions for services such as cpg.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1786 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoLock cpg ipc connections into memory on lib_init_fn and remove lock on
Steven Dake [Tue, 3 Mar 2009 00:57:44 +0000 (00:57 +0000)]
Lock cpg ipc connections into memory on lib_init_fn and remove lock on
lib_exit_fn.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1785 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoThis patch fixes some minor bugs in the expected_votes behaviour and
Christine Caulfield [Thu, 26 Feb 2009 14:51:18 +0000 (14:51 +0000)]
This patch fixes some minor bugs in the expected_votes behaviour and
adds a couple of new features:

- When total_votes exceeds the expected_votes value then expected_votes
is increased to that value.

- A callback can be sent to a client whenever expected_votes is changed

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1784 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoThe current object database allows duplicate key names per object. This
Christine Caulfield [Thu, 26 Feb 2009 14:49:41 +0000 (14:49 +0000)]
The current object database allows duplicate key names per object. This
is a bit of a nightmare to manage and provides no useful functionality
that I can see. Making keys unique has been discussed on IRC several
times and there seem to be no objections...so here is the patch:

Note that I have removed some now-useless parameters from the objdb API
too.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1783 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoUnification around hdb_handle_t data type.
Steven Dake [Wed, 25 Feb 2009 11:14:47 +0000 (11:14 +0000)]
Unification around hdb_handle_t data type.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1782 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoSend configuration changes to CPG listeners. (regression in IPC patch).
Steven Dake [Wed, 25 Feb 2009 06:54:42 +0000 (06:54 +0000)]
Send configuration changes to CPG listeners.  (regression in IPC patch).

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1781 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoInstall corosync-fplay and corosync-pload binaries
Fabio M. Di Nitto [Wed, 25 Feb 2009 04:58:08 +0000 (04:58 +0000)]
Install corosync-fplay and corosync-pload binaries

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1780 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix possible segfault with IPC service.
Steven Dake [Wed, 25 Feb 2009 04:55:32 +0000 (04:55 +0000)]
Fix possible segfault with IPC service.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1779 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove extra printf debug.
Steven Dake [Wed, 25 Feb 2009 04:55:06 +0000 (04:55 +0000)]
Remove extra printf debug.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1778 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove installation of static libcoroipc.a.
Steven Dake [Tue, 24 Feb 2009 10:32:23 +0000 (10:32 +0000)]
Remove installation of static libcoroipc.a.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1777 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix problem with 1722 commit which broke ipc.
Steven Dake [Tue, 24 Feb 2009 06:15:17 +0000 (06:15 +0000)]
Fix problem with 1722 commit which broke ipc.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1776 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoMove VOTEQUORUM_SERVICE to ipc_gen.h where it belongs.
Christine Caulfield [Mon, 23 Feb 2009 15:26:21 +0000 (15:26 +0000)]
Move VOTEQUORUM_SERVICE to ipc_gen.h where it belongs.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1775 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoWhen a quorum device registers it tells the corosync quorum engine of
Christine Caulfield [Mon, 23 Feb 2009 08:53:45 +0000 (08:53 +0000)]
When a quorum device registers it tells the corosync quorum engine of
the new quorum which then tries to do a new sync(). But that's no use
because the nodelist and ring_id is identical to before. Also it can try
and register while a sync is already in operation ... which gets it
awfully stuck!

So this patch makes the sync conditional on there being a new ring ID to
do a sync on.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1774 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix problem in disallowed mode that prevented a HASSTATE node joining
Christine Caulfield [Fri, 20 Feb 2009 16:02:06 +0000 (16:02 +0000)]
Fix problem in disallowed mode that prevented a HASSTATE node joining
a cluster without state or vice-versa
see Red Hat BZ#485026

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1773 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoDon't crash if a library tries to talk to a module that is not loaded
Christine Caulfield [Fri, 20 Feb 2009 08:24:40 +0000 (08:24 +0000)]
Don't crash if a library tries to talk to a module that is not loaded

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1772 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAllow CPG messages to be sent on an inquorate cluster
Christine Caulfield [Fri, 20 Feb 2009 07:46:15 +0000 (07:46 +0000)]
Allow CPG messages to be sent on an inquorate cluster

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1771 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix crash in confdb_finalize
Christine Caulfield [Thu, 19 Feb 2009 15:30:20 +0000 (15:30 +0000)]
Fix crash in confdb_finalize

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1770 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoGet rid of one crash in confdb. It still double-frees in confdb_finalize though.
Christine Caulfield [Thu, 19 Feb 2009 08:42:31 +0000 (08:42 +0000)]
Get rid of one crash in confdb. It still double-frees in confdb_finalize though.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1769 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix crashes in quorum_initialize & votequorum_initialize
Christine Caulfield [Thu, 19 Feb 2009 08:38:40 +0000 (08:38 +0000)]
Fix crashes in quorum_initialize & votequorum_initialize

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1768 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix build error spotted by gcc-4.4
Fabio M. Di Nitto [Thu, 19 Feb 2009 08:05:52 +0000 (08:05 +0000)]
Fix build error spotted by gcc-4.4

#elif with no clause is clearly wrong and continuing when we don't
know the byte order only defers the problem to a point where its much
harder to debug

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1767 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoWhitetank IPC Forward Port.
Steven Dake [Thu, 19 Feb 2009 02:23:58 +0000 (02:23 +0000)]
Whitetank IPC Forward Port.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1766 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove redundant statement in totemsrp.
Steven Dake [Wed, 18 Feb 2009 02:13:30 +0000 (02:13 +0000)]
Remove redundant statement in totemsrp.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1764 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoUse definition instead of magic number.
Steven Dake [Wed, 18 Feb 2009 02:07:59 +0000 (02:07 +0000)]
Use definition instead of magic number.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1763 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoUpdate link for upstream crypto code.
Steven Dake [Wed, 18 Feb 2009 02:06:13 +0000 (02:06 +0000)]
Update link for upstream crypto code.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1762 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd timer_expire_time_get
Ryan O'Hara [Wed, 18 Feb 2009 01:28:35 +0000 (01:28 +0000)]
Add timer_expire_time_get
Add timer_expire_time_get corosync API call.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1761 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd timer_time_get to the corosync API.
Ryan O'Hara [Sat, 14 Feb 2009 02:06:20 +0000 (02:06 +0000)]
Add timer_time_get to the corosync API.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1760 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd corosync_cfg_local_get() call to get the local NodeID in libcfg
Christine Caulfield [Fri, 13 Feb 2009 09:21:57 +0000 (09:21 +0000)]
Add corosync_cfg_local_get() call to get the local NodeID in libcfg

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1759 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd TMR_SERVICE to the list of service_types.
Ryan O'Hara [Thu, 12 Feb 2009 00:45:19 +0000 (00:45 +0000)]
Add TMR_SERVICE to the list of service_types.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1758 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix "leave" function where the remaining nodes recalculate quorum when a
Christine Caulfield [Tue, 3 Feb 2009 16:30:02 +0000 (16:30 +0000)]
Fix "leave" function where the remaining nodes recalculate quorum when a
node leaves. Also add a timeout to the leave flag.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1757 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agofix pkgconfig builddir creation
Fabio M. Di Nitto [Fri, 30 Jan 2009 18:44:13 +0000 (18:44 +0000)]
fix pkgconfig builddir creation

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1756 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd .pc file support for corosync libs
Fabio M. Di Nitto [Fri, 30 Jan 2009 18:25:04 +0000 (18:25 +0000)]
Add .pc file support for corosync libs

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1755 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd quorum_fd_get and votequorum_fd_get prototypes
Christine Caulfield [Fri, 30 Jan 2009 13:31:40 +0000 (13:31 +0000)]
Add quorum_fd_get and votequorum_fd_get prototypes

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1754 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoMake cfg_get_node_addrs return CS_OK rather than 0 when it succeeds.
Christine Caulfield [Fri, 30 Jan 2009 11:56:34 +0000 (11:56 +0000)]
Make cfg_get_node_addrs return CS_OK rather than 0 when it succeeds.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1753 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix votequorum_getinfo returning the wrong value for expected_votes
Christine Caulfield [Thu, 29 Jan 2009 14:21:05 +0000 (14:21 +0000)]
Fix votequorum_getinfo returning the wrong value for expected_votes

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1752 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove the last bicapitalised name from cfg
Christine Caulfield [Thu, 29 Jan 2009 09:17:43 +0000 (09:17 +0000)]
Remove the last bicapitalised name from cfg

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1751 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoDon't automatically load the quorum service.
Christine Caulfield [Tue, 27 Jan 2009 08:59:14 +0000 (08:59 +0000)]
Don't automatically load the quorum service.

This will, for the time being, unbreak synchronisation.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1750 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix node masking for 32 bit node ids.
Steven Dake [Mon, 26 Jan 2009 20:46:45 +0000 (20:46 +0000)]
Fix node masking for 32 bit node ids.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1749 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAllow crypto to work on systems where unsigned long evaluates to 8 bytes. (s390x).
Steven Dake [Mon, 26 Jan 2009 20:22:28 +0000 (20:22 +0000)]
Allow crypto to work on systems where unsigned long evaluates to 8 bytes. (s390x).

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1746 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd the votequorum service
Christine Caulfield [Mon, 26 Jan 2009 10:46:08 +0000 (10:46 +0000)]
Add the votequorum service

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1745 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix error where entire message was not rejected during startup of a new
Steven Dake [Sun, 25 Jan 2009 21:25:25 +0000 (21:25 +0000)]
Fix error where entire message was not rejected during startup of a new
node resulting in partial delivery of a complete message and segfaulting
the executive.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1744 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix message rejection problem.
Steven Dake [Sun, 25 Jan 2009 21:15:25 +0000 (21:15 +0000)]
Fix message rejection problem.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1743 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agocleanup handling of uid/gid config
Fabio M. Di Nitto [Fri, 23 Jan 2009 16:12:13 +0000 (16:12 +0000)]
cleanup handling of uid/gid config

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1742 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix a couple of memory leaks
Christine Caulfield [Fri, 23 Jan 2009 15:41:06 +0000 (15:41 +0000)]
Fix a couple of memory leaks

The objdb occurred because object_find_destroy wasn't implemented!

The one in confdb occurred because object_find_destroy wasn't called if
object_find_next returned an error the first time it was invoked (ie
there were no subobjects).

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1741 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agofix logging reload operation and clean up main init
Fabio M. Di Nitto [Fri, 23 Jan 2009 14:27:58 +0000 (14:27 +0000)]
fix logging reload operation and clean up main init

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1740 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agodon't keep logsys fd open unless it's required
Fabio M. Di Nitto [Fri, 23 Jan 2009 14:25:30 +0000 (14:25 +0000)]
don't keep logsys fd open unless it's required

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1739 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoInstall quorum.h
Christine Caulfield [Thu, 22 Jan 2009 09:48:23 +0000 (09:48 +0000)]
Install quorum.h

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1738 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoInstall quorum library
Christine Caulfield [Wed, 21 Jan 2009 15:57:12 +0000 (15:57 +0000)]
Install quorum library

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1737 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoComplete poll_stop function.
Steven Dake [Tue, 20 Jan 2009 17:59:10 +0000 (17:59 +0000)]
Complete poll_stop function.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1735 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoCancel token holding mode when a totem token callback is added to the system.
Steven Dake [Tue, 20 Jan 2009 17:41:45 +0000 (17:41 +0000)]
Cancel token holding mode when a totem token callback is added to the system.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1734 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd OBJDB_RELOAD_NOTIFY_FAILED which was missing from coroapi
Christine Caulfield [Tue, 20 Jan 2009 13:19:05 +0000 (13:19 +0000)]
Add OBJDB_RELOAD_NOTIFY_FAILED which was missing from coroapi

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1733 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoMake all the bicapitalised names in cfg more sensible.
Christine Caulfield [Mon, 19 Jan 2009 08:31:21 +0000 (08:31 +0000)]
Make all the bicapitalised names in cfg more sensible.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1732 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoClean up tag handling and provide functions to match name with values and
Fabio M. Di Nitto [Fri, 16 Jan 2009 08:59:09 +0000 (08:59 +0000)]
Clean up tag handling and provide functions to match name with values and
viceversa.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1731 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agorestore the priority setting that was lost
Fabio M. Di Nitto [Fri, 16 Jan 2009 08:44:15 +0000 (08:44 +0000)]
restore the priority setting that was lost

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1730 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoRemove duplicate code and use the right library call into logsys
Fabio M. Di Nitto [Thu, 15 Jan 2009 12:06:40 +0000 (12:06 +0000)]
Remove duplicate code and use the right library call into logsys
that also cover cases that were not handled at all.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1729 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix small memory leak on config reload operations
Fabio M. Di Nitto [Thu, 15 Jan 2009 11:33:47 +0000 (11:33 +0000)]
Fix small memory leak on config reload operations

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1728 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix logsys write to file crash.
Fabio M. Di Nitto [Wed, 14 Jan 2009 11:00:23 +0000 (11:00 +0000)]
Fix logsys write to file crash.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1727 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoadd corosync_cfg_get_node_addrs() call.
Christine Caulfield [Wed, 14 Jan 2009 09:27:40 +0000 (09:27 +0000)]
add corosync_cfg_get_node_addrs() call.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1726 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoAdd some mussing pthread_mutex_lock() calls.
Christine Caulfield [Wed, 14 Jan 2009 08:33:44 +0000 (08:33 +0000)]
Add some mussing pthread_mutex_lock() calls.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1725 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoBuild testquorum on Darwin
Christine Caulfield [Thu, 8 Jan 2009 16:55:47 +0000 (16:55 +0000)]
Build testquorum on Darwin

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1724 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoDon't always overwrite /etc/corosync.conf when make install is run.
Christine Caulfield [Thu, 8 Jan 2009 11:38:17 +0000 (11:38 +0000)]
Don't always overwrite /etc/corosync.conf when make install is run.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1723 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoIf there was a quorum {} section in corosync.conf but no provider specified
Christine Caulfield [Thu, 8 Jan 2009 11:12:10 +0000 (11:12 +0000)]
If there was a quorum {} section in corosync.conf but no provider specified
then  we would always report inquorate.

This was wrong, if no provider is specified then we are always quorate.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1722 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoPatch to allow cpg_membership_get to work properly.
Steven Dake [Thu, 8 Jan 2009 06:29:16 +0000 (06:29 +0000)]
Patch to allow cpg_membership_get to work properly.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1721 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoFix coverity bug ID 6: FORWARD_NULL
Angus Salkeld [Wed, 7 Jan 2009 17:42:10 +0000 (17:42 +0000)]
Fix coverity bug ID 6: FORWARD_NULL

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1720 fd59a12c-fef9-0310-b244-a6a79926bd2f

15 years agoCheck against the right var and silence a few warnings at build time
Fabio M. Di Nitto [Wed, 7 Jan 2009 11:40:02 +0000 (11:40 +0000)]
Check against the right var and silence a few warnings at build time

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1719 fd59a12c-fef9-0310-b244-a6a79926bd2f