]>
git.proxmox.com Git - mirror_corosync.git/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Angus Salkeld [Tue, 6 Jan 2009 04:06:51 +0000 (04:06 +0000)]
Fix coverity bug ID 9: OVERRUN_STATIC
CID: 9
Checker: OVERRUN_STATIC (help)
File: lib/cfg.c
Function: corosync_cfg_service_unload
Description: Overrun of static array
"&(req_lib_cfg_serviceunload).service_name" of size 1024 bytes by
passing it to a function which indexes it with argument "1023" at byte
position 4088
The main problem here is the way the service_name is defined:
- char *service_name[256] __attribute__((aligned(8)));
+ char service_name[256] __attribute__((aligned(8)));
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1718
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Sun, 28 Dec 2008 09:25:17 +0000 (09:25 +0000)]
Fix coverity bug ID 4: remove unused code & fix compile error
In evs_dispatch() the local ignore_dispatch is not used.
So I have removed this code.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1717
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Sun, 28 Dec 2008 09:05:05 +0000 (09:05 +0000)]
Fix coverity bug ID 1: overused local variable
coverity says that in exec/objdb.c: 1075 the found is always == 1
therefore the code is dead. But this is just a case of an overused
local variable. "found" is used for two different searches.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1716
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Sun, 28 Dec 2008 09:01:35 +0000 (09:01 +0000)]
Fix coverity bug ID 7: add NULL pointer check
Here coverity checks that if in a function a pointer is checked
for NULL then it is checked through out the function.
So below I have just add some more checks for NULL.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1715
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Sun, 28 Dec 2008 08:55:57 +0000 (08:55 +0000)]
Fix coverity bug ID 5
In poll_timer_add() if you pass in a NULL for the callback function
the pointer will be dereferenced.
I have moved the check for the NULL up.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1714
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Fri, 19 Dec 2008 16:08:25 +0000 (16:08 +0000)]
If there is no quorum provider specified, then always return quorate.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1713
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Thu, 18 Dec 2008 08:28:46 +0000 (08:28 +0000)]
If we exit with an error, set the returned status code for the shell.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1712
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Wed, 17 Dec 2008 17:44:50 +0000 (17:44 +0000)]
Don't segfault if the ais group is not found.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1711
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 17 Dec 2008 08:34:26 +0000 (08:34 +0000)]
Add config reload support for logsys
If objdb is reloaded, then we re-parse the logging options.
This allows logging options to be changed/enabled/disabled without
restarting corosync
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1710
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Fri, 12 Dec 2008 11:27:27 +0000 (11:27 +0000)]
This patch adds this capability for a limited number of totem keys using
the existing reload mechanism.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1709
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Thu, 11 Dec 2008 09:42:17 +0000 (09:42 +0000)]
Install quorum.h file
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1708
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Tue, 9 Dec 2008 13:51:23 +0000 (13:51 +0000)]
Add another missing file
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1707
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Tue, 9 Dec 2008 13:48:47 +0000 (13:48 +0000)]
Add some missing files, sorry
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1706
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 8 Dec 2008 16:11:07 +0000 (16:11 +0000)]
Patch to fix compilation of macosx and linux in some platform configurations.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1705
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 8 Dec 2008 15:55:41 +0000 (15:55 +0000)]
quorum is now an optional loadable module (though I've put it into the
defaults in services.c) and can load another module to do the quorum
work (eg YKD which I've made more compliant too). All the quorum code
has been removed from sync.c. quorum.c is simply a shim later for the
coroapi, the main module is in vsf_quorum.c
There are coroapi calls to query quorate status and also to get
notifications when it changes.
I've included the testquorum.lcrso module in this patch because I think
it's really helpful for testing. It sets the quorum state based on an
objdb variable, this can be set or cleared using corosync-cfgtool
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1704
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Tue, 2 Dec 2008 15:51:03 +0000 (15:51 +0000)]
Fix deadlock in logsys during startup.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1703
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Andrew Beekhof [Tue, 2 Dec 2008 14:50:51 +0000 (14:50 +0000)]
Correctly compare local addresses with bindnetaddr
This patch allows whitetank/corosync to behave correctly when the supplied value of bindnetaddr has more precision than the netmask, but is not a full IPv4 address.
For example, currently, if the netmask is /16 but the user specifies 192.168.1.0, then OpenAIS is unable to determine the correct address and uses the loopback address instead.
The following patch allows OpenAIS to correctly determine which interface/address to use.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1702
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Mon, 1 Dec 2008 18:44:55 +0000 (18:44 +0000)]
change get node_id() to return an unsigned int
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1701
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Mon, 1 Dec 2008 17:43:40 +0000 (17:43 +0000)]
depending on your ip address, cpg doesn't always send config changes
If you ip addresses are larger than 0xffffff then you will never
get sent group leave notifications.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1700
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Thu, 13 Nov 2008 09:54:34 +0000 (09:54 +0000)]
Don't crash if we get a message for a service that isn't loaded.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1699
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Thu, 13 Nov 2008 09:54:09 +0000 (09:54 +0000)]
Make the port numbers into Network Byte Order.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1698
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Wed, 12 Nov 2008 17:39:37 +0000 (17:39 +0000)]
LINT: fix confd_sa API error.
remove extra parent_object_handle parameter.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1697
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Tue, 11 Nov 2008 18:13:47 +0000 (18:13 +0000)]
LINT: fix "Assignment of ssize_t to int" warnings
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1696
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Tue, 11 Nov 2008 17:28:22 +0000 (17:28 +0000)]
LINT: tweek the lint make rules.
Makefile.inc: add -unrecog (don't complain about things like strdup().
tools/Makefile: don't use *.c as it complains about duplicate main() functions
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1695
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Tue, 11 Nov 2008 17:26:58 +0000 (17:26 +0000)]
LINT: rename the overlay struct so they are uniq.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1694
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Tue, 11 Nov 2008 17:25:22 +0000 (17:25 +0000)]
LINT: fix or ignore unchecked return values.
If we don't care about the return value then typecase the return
value to void.
Else do something useful with the return value.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1693
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 10 Nov 2008 08:58:12 +0000 (08:58 +0000)]
Fix missing message in delivery of messages under certain circumstances.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1692
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 10 Nov 2008 08:57:50 +0000 (08:57 +0000)]
Fix received_flg to contain proper values.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1691
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Fri, 7 Nov 2008 01:34:43 +0000 (01:34 +0000)]
Add corotype.h and delete saAis.h
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1690
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Thu, 6 Nov 2008 21:49:07 +0000 (21:49 +0000)]
cleanup the last of the SAF headers and types
This includes the rename of identifiers from corosync to cs.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1689
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 6 Nov 2008 00:17:19 +0000 (00:17 +0000)]
Make width of service 6 bytes instead of 5.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1688
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 6 Nov 2008 00:17:01 +0000 (00:17 +0000)]
Null terminate string which resulted in failure of confdb during logging.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1687
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Tue, 4 Nov 2008 01:35:15 +0000 (01:35 +0000)]
Make lib/ clean up after itself properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1686
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Sat, 1 Nov 2008 08:22:51 +0000 (08:22 +0000)]
fix build error, can't complie if openais not installed.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1685
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Sat, 1 Nov 2008 08:19:18 +0000 (08:19 +0000)]
Add a top level "make lint"
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1684
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Fri, 31 Oct 2008 13:20:29 +0000 (13:20 +0000)]
This patch adds two extra features to the CFG service in corosync, these
are taken (conceptually at least) from cman.
1. corosync_cfg_killnode() this will tell a remote node to exit.
2. corosync_cfg_tryshutdown() this will do a semi-controlled shutdown in
that it will consult any interested attached daemons if they are willing
to let corosync be shut down. If they all agree then the rest of the
cluster will be informed before the node dies.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1683
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 30 Oct 2008 22:41:34 +0000 (22:41 +0000)]
performance loading service engine first implementation.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1682
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 30 Oct 2008 22:25:56 +0000 (22:25 +0000)]
Logsys flight recorder.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1681
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Thu, 30 Oct 2008 19:32:23 +0000 (19:32 +0000)]
Fix a memory violation in objdb (caught by valgrind)
If the new length is larger then memory will be overwritten.
I could make this ">=" but we can save memory if the new size is smaller by using "!=".
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1680
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 27 Oct 2008 15:56:46 +0000 (15:56 +0000)]
Improve the usage message of corosync_objctl.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1679
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 27 Oct 2008 08:25:53 +0000 (08:25 +0000)]
Currently if a reload operation fails, any subsystems listening for
notifications will get a RELOAD_NOTIFY_START callback but not a
RELOAD_NOTIFY_END callback.
This patch adds a RELOAD_NOTIFY_FAILED callback so that interested
parties will know when the reload has finished and that it failed.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1678
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Tue, 21 Oct 2008 21:44:29 +0000 (21:44 +0000)]
remove some new warnings from corosync
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1677
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Mon, 20 Oct 2008 22:05:51 +0000 (22:05 +0000)]
Remove unused global debug option from the man page.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1676
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Mon, 20 Oct 2008 21:52:25 +0000 (21:52 +0000)]
Remove unneeded totem_timeout_types global define.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1675
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 13 Oct 2008 14:27:41 +0000 (14:27 +0000)]
This is an initial pass at a top-level quorum system. As it stands, this
module doesn't provide quorum itself, merely a framework for setting and
querying it. I envisage YKD plugging into this rather than straight into
sync() eventually.
I've plugged this into the sync() routines rather than replacing them so
that quorum is itself a VSF, rather than a replacement - I'm not sure if
that is best or not. Opinions are welcome.
I've added an extra enum member to the service_handler so that we can
send IPC messages when the cluster isn't quorate. This will default to
NO (as now) but allows us to query and set quorum when we don't have it
.. a useful feature !
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1674
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 6 Oct 2008 12:14:40 +0000 (12:14 +0000)]
Add locking around objdb calls so that reloads and writes are atomic.
Also add a notification callback for reload. Both the start and the stop
are notified so that the user can decide what to do with the flurry of
updates that occur.
Note than the reload callback notification MUST be registered against
OBJECT_PARENT_HANDLE. Registering it lower down the hierarchy makes no sense.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1673
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Mon, 6 Oct 2008 07:46:04 +0000 (07:46 +0000)]
Fix some compile warnings.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1672
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Sun, 5 Oct 2008 13:23:22 +0000 (13:23 +0000)]
Fix CFLAGS and LDFLAGS overrides to work for DEBUG and RELEASE modes.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1671
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Thu, 25 Sep 2008 05:21:27 +0000 (05:21 +0000)]
Fix makefile error in test directory.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1669
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Steven Dake [Tue, 23 Sep 2008 17:32:51 +0000 (17:32 +0000)]
Add evs verify tool and allow Makefile to build in test directory properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1668
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Wed, 17 Sep 2008 19:15:00 +0000 (19:15 +0000)]
Propagate the flow control state between AIS exec and library
This patch causes the flow control state in the library to be set
properly when the flow control is turned off (disabled). Then it can be
read properly by the flow control apis.
This also fixes the case where the application is no longer sending
messages and it has already dispatched all its received messages
before flow control is disabled.
Also, CPG response messages with a TRY_AGAIN error did NOT contain
a valid flow control state value. This meant the library could get
stuck with flow control enabled (flow control was never enabled
for the EXEC, so no disable event occurred).
This case was hit when a new node was joining - sync_in_process()
resulted in a TRY_AGAIN for error cpg_mcast_joined).
Also, in message_handler_req_exec_cpg_mcast() the state passed
back to the library defaulted to disabled for messages received
from another node (even if flow control was still enabled)
- this meant if multiple nodes were sending CPG messages,
then the library flow control state flip-flopped between
enabled and disabled.
Author: Steven Dake <sdake@redhat.com> &
Tim Beale <tim.beale@alliedtelesis.co.nz>
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1667
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Wed, 17 Sep 2008 19:04:19 +0000 (19:04 +0000)]
Add support for AMF (sync_request)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1666
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Wed, 17 Sep 2008 18:22:58 +0000 (18:22 +0000)]
If syslog() blocked, node-leave events were incorrectly reported
In some cases, the syslog() call may block. If this happened, the AIS worker
thread would block waiting on the syslog() call. However, the worker thread
is still holding a logsys mutex, which is needed to enqueue any more log
messages from the other AIS threads. So the main AIS thread blocks waiting
on the logsys mutex. This can then cause aisexec on other nodes to detect
the node as leaving the cluster.
Author: Tim Beale <tim.beale@alliedtelesis.co.nz>
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1665
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Fabien Thomas [Tue, 16 Sep 2008 15:35:09 +0000 (15:35 +0000)]
use getifaddrs to enumerate interface on FreeBSD and Darwin (patch from Mathieu Virbel)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1664
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 3 Sep 2008 10:01:31 +0000 (10:01 +0000)]
Reinstate key_iter_reset that got removed by mistake in 1660
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1663
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 3 Sep 2008 07:58:08 +0000 (07:58 +0000)]
This patch adds key_increment and key_decrement calls to the objdb and
confdb subsystems.
This is useful to provide atomic counters (ag handle numbers) for
long-running (though not persistent) connections. It's not currently
possible via confdb to atomically get a new number from objdb due to the
lack of locking. Doing it via increment operations in the IPC thread
provides enough atomicity to make it useful. Fabio has already
identified a use for these calls.
It could also provide some form of basic co-operative locking mechanism
for IPC-using processes (not direct objdb calls).
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1662
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Wed, 27 Aug 2008 13:30:52 +0000 (13:30 +0000)]
Fix the names of confdb_object_find_destroy and confdb_object_iter_destroy.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1661
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Christine Caulfield [Tue, 26 Aug 2008 07:34:22 +0000 (07:34 +0000)]
Remove the disliked *_from calls from the objdb and recast
the confdb library to use the new find_create/find_next/find_destroy API
calls instead.
I've kept the libcondfb API the same as before with the single change of
adding a confdb_object_find_destroy to tidy up the find handle after
use. If you don't call this then libcondfb will do it for you when
confdb_finalize is called.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1660
fd59a12c -fef9-0310-b244-
a6a79926bd2f
Angus Salkeld [Wed, 20 Aug 2008 01:07:29 +0000 (01:07 +0000)]
Zero out unused totemsrp my_proc_list entries
When making my_proc_list smaller, ensure that the
now non-used entries are zero-ed out. There are some suspect
assert's that assume that there is always 2 entries in the list.
These fail when my_proc_list is reduced to 1 entry (and the
valid [0] entry is the same as the 'unused' [1] entry).
Author: Mark Wutzke <mark.wutzke@alliedtelesis.co.nz>
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1659
fd59a12c -fef9-0310-b244-
a6a79926bd2f