Steven Dake
a6b49dc40d
Add missing prototypes in totemsrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1816 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 11:21:23 +00:00
Steven Dake
deb3f83255
Remove pointer math warnings from totemsrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1815 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 11:14:28 +00:00
Steven Dake
43ab4aa3a9
Define undefined prototypes
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1814 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 11:08:49 +00:00
Steven Dake
daeba96c58
Remove string literal warnings from totemrrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1813 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 11:04:12 +00:00
Steven Dake
6895160788
Remove const warnings from main.c.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1812 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 10:35:14 +00:00
Steven Dake
38ae1929f5
Remove type casting to (char *) in logsys.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1811 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 10:32:09 +00:00
Steven Dake
48f96e6814
Remove pointer math from totempg.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1810 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 10:12:52 +00:00
Steven Dake
e00c19db5a
Remove pointer math warnings from totemnet.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1809 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 10:09:43 +00:00
Steven Dake
3b9f70d235
Remove const warnings in totemip code.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1808 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 10:05:40 +00:00
Christine Caulfield
83aec0b84a
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
2009-03-10 09:58:07 +00:00
Steven Dake
64aab2e950
Remove const warnings relating to logsys global definitions.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1806 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:48:34 +00:00
Steven Dake
b113dd2e19
Remove logsys warnings.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1805 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:40:54 +00:00
Steven Dake
7f3f9496b3
Remove const warnings in totempg.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1804 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:34:20 +00:00
Steven Dake
3a59106ec8
Remove const warnings from totemsrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1803 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:30:29 +00:00
Steven Dake
120ed48344
Remove qualifier warnings regarding totemrrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1802 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:25:43 +00:00
Steven Dake
3c3c11426e
Remove const/nonconst assignment warnings in totemnet.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1801 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:22:08 +00:00
Steven Dake
1b39d2c322
Remove leftover from automake merge.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1800 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 09:00:15 +00:00
Steven Dake
59d2462944
Add missing committed file for automake.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1799 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 08:39:48 +00:00
Steven Dake
0bc9cd90f6
Automake. The journey begins.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1798 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 08:35:41 +00:00
Fabio M. Di Nitto
8c4bcde5c2
Add logsys_format_get to logsys API.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1797 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-10 08:03:50 +00:00
Fabio M. Di Nitto
f7c4cea567
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
2009-03-10 07:11:17 +00:00
Fabio M. Di Nitto
0419be3366
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
2009-03-09 12:59:40 +00:00
Christine Caulfield
9ff50d8e38
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
2009-03-06 10:07:35 +00:00
Steven Dake
1f05ffd27d
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
2009-03-06 07:38:34 +00:00
Fabio M. Di Nitto
f83aa4f876
Allow logsys_format_set to reset to default.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1792 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-06 07:09:24 +00:00
Steven Dake
3619c3a965
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
2009-03-06 02:42:48 +00:00
Fabio M. Di Nitto
3d557674b1
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
2009-03-04 10:14:36 +00:00
Fabio M. Di Nitto
e0a74a08b3
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
2009-03-04 10:13:26 +00:00
Fabio M. Di Nitto
39c4b8b1b6
Fix uninitialized memory. Spotted by valgrind
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1788 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-03-03 03:57:37 +00:00
Steven Dake
0d274de4ec
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
2009-03-03 00:58:16 +00:00
Steven Dake
4050ac171f
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
2009-03-03 00:57:44 +00:00
Christine Caulfield
f5a64b8d64
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
2009-02-26 14:51:18 +00:00
Christine Caulfield
d604803280
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
2009-02-26 14:49:41 +00:00
Steven Dake
58ab8d4a65
Unification around hdb_handle_t data type.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1782 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-25 11:14:47 +00:00
Steven Dake
7931e7be08
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
2009-02-25 06:54:42 +00:00
Fabio M. Di Nitto
53c29707a8
Install corosync-fplay and corosync-pload binaries
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1780 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-25 04:58:08 +00:00
Steven Dake
a68b9f3944
Fix possible segfault with IPC service.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1779 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-25 04:55:32 +00:00
Steven Dake
c5c15450be
Remove extra printf debug.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1778 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-25 04:55:06 +00:00
Steven Dake
a598e7e655
Remove installation of static libcoroipc.a.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1777 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-24 10:32:23 +00:00
Steven Dake
82bbabb663
Fix problem with 1722 commit which broke ipc.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1776 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-24 06:15:17 +00:00
Christine Caulfield
ffddfb562b
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
2009-02-23 15:26:21 +00:00
Christine Caulfield
fb833af401
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
2009-02-23 08:53:45 +00:00
Christine Caulfield
479eadbce1
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
2009-02-20 16:02:06 +00:00
Christine Caulfield
9a3ccc6059
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
2009-02-20 08:24:40 +00:00
Christine Caulfield
c450c918f7
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
2009-02-20 07:46:15 +00:00
Christine Caulfield
2e135e8721
Fix crash in confdb_finalize
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1770 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-19 15:30:20 +00:00
Christine Caulfield
5fddd819b9
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
2009-02-19 08:42:31 +00:00
Christine Caulfield
d8ed443105
Fix crashes in quorum_initialize & votequorum_initialize
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1768 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-19 08:38:40 +00:00
Fabio M. Di Nitto
b727ce320d
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
2009-02-19 08:05:52 +00:00
Steven Dake
c077255702
Whitetank IPC Forward Port.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1766 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-02-19 02:23:58 +00:00