Angus Salkeld
f2f20533fd
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
2008-12-01 18:44:55 +00:00
Steven Dake
69b80c7126
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
2008-11-10 08:58:12 +00:00
Steven Dake
0c631e24fc
Logsys flight recorder.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1681 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-10-30 22:25:56 +00:00
Steven Dake
e1f531380a
Revert patch 1633 which breaks build.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1636 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-08-14 16:44:26 +00:00
Steven Dake
c4a1c7eb96
Change all occurances of openais to corosync.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1633 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-08-14 16:04:01 +00:00
Fabien Thomas
0c92a5e564
reorganize include file to match installed tree to build openais without installing corosync; correct some warnings and error under FreeBSD and Darwin
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1632 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-08-14 14:59:50 +00:00
Steven Dake
617dbdf2f0
Split openais and corosync tree into two seperate repositories.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1622 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-08-05 13:23:46 +00:00
Steven Dake
46babc95ad
Initial move of corosync and openais trees into seperate directories.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1582 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-07-21 07:59:08 +00:00
Steven Dake
a7f4b6d8cb
Fix a ton of bugs in totem by forward porting the whitetank totem code into
...
trunk.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1562 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-06-24 04:45:38 +00:00
Steven Dake
0a19a21f1b
Remove this_ip from the source tree and replace with accessor functions.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1379 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-05 08:55:44 +00:00
Patrick Caulfield
08dd4174c6
In trunk, totemip.h and totem.h call for "../include/swab.h" - this works fine
...
when building openais itself but causes problems when installed as those files
will not be in the right place.
So, I've moved these includes out of totemip.h and totem.h and into the .c files
that call them.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1370 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-05-05 14:02:53 +00:00
Fabien Thomas
d4e4f10df1
do not include alloca.h under BSD; alloca is in stdlib.h
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1221 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-18 07:38:21 +00:00
Steven Dake
90ccff6bbc
Solaris port for openais
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1175 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-05 02:22:12 +00:00
Steven Dake
6a00f63ff9
Patch so realloc reverts to old buffer if reallocation fails.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1170 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-28 23:34:28 +00:00
Steven Dake
806258b5c3
Cleanup log_printf to use gnu attributes to do automatic type checking.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1166 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-26 07:39:53 +00:00
Steven Dake
f4e89f2ffc
Add errno.h include since it was removed from swab.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1159 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-26 06:55:10 +00:00
Steven Dake
a67178dbdf
Reduce memory usage in large configurations by dynamically allocating
...
fragmentation assembly buffer.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1144 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 02:39:21 +00:00
Steven Dake
24cc0d7f15
Remove compile warning from cfgtool commit.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1138 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-19 19:33:20 +00:00
Steven Dake
640cfba2ab
Add support for reenabling a failed redundant ring and printing ring status
...
through the test/opeanis-cfgtool application.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1137 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-19 19:31:01 +00:00
Patrick Caulfield
5d7b5f7fdd
printing ipv6 addresses often needs more than a 32 byte buffer. THis could
...
causes a crash with sone ipv6 installations.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1135 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-18 06:33:39 +00:00
Steven Dake
ba70bff546
Rework of the timer system to allow timers to be added in dispatch handlers.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1099 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-29 22:03:08 +00:00
Steven Dake
483a9baac7
The redundant ring take 4 patch. This includes modes for active, passive,
...
and none. Read openais.conf.5 for information regarding how to configure
redundant ring.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1032 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-19 19:49:40 +00:00
Steven Dake
2439b397fb
Fix up mutexes to avoid deadlocks
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1017 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-28 17:57:04 +00:00
Steven Dake
3c7f8b7c05
This patch reworks IPC to use threads instead of the main poll loop
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1011 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-27 01:39:10 +00:00
Steven Dake
f50a6a11c8
Patch from Hans to significantly improve the logging functionality
...
read openais.conf.5 for info on how the new logging works.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@995 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-18 19:53:18 +00:00
Fabien Thomas
064ffb17a1
Bug 1130: add totempg log; remove warnings; add DPRINT macro
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@954 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-24 08:28:12 +00:00
Steven Dake
7b68e9aa8e
defect 981
...
This patch fixes a problem where totempg would not work cross-endian.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@933 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-02 23:25:51 +00:00
Steven Dake
536fab94eb
defect 1045
...
totempg is not thread safe, and AMF requires threads to instantiate components
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@898 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-21 23:23:45 +00:00
Steven Dake
f6cfe4e86e
This is a major rework of the service handling code. Now service handlers
...
can be dynamically loaded via the live component replacement service. Sync
handlers are also dynamically contributed.
It is possible to build using either dynamic loading via LCR or static
linking of the entire executive. This is controlled by the BUILD_DYNAMIC
configuration option in the Makefile.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@892 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-20 20:40:21 +00:00
Steven Dake
a4538aee95
defect 1024
...
YKD algorithm doesn't always work when new_message_queue is full.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@885 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-07 00:26:16 +00:00
Steven Dake
d920864d61
enhancement 1019
...
Modify YKD to select primary component and execute the synchronization
operation only in the main partition. In the non-primary partition, no
new requests are allowed - they are all returned with the error code
SA_AIS_ERR_TRY_AGAIN.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@878 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-03 04:10:17 +00:00
Steven Dake
90c88404cd
enhancement 989
...
improve process group membership interface in totem_pg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@869 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-12-27 18:36:38 +00:00
Steven Dake
175ead199e
defect 988
...
The totem SRP handle is passed up the entire stack is not needed past certain
functions.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@860 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-12-06 18:42:29 +00:00
Steven Dake
e4dfef72d5
defect 979
...
This enhancement adds support for IPV6 to the trunk of openais.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@856 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-11-30 19:44:40 +00:00
Steven Dake
b879b3901d
defect 956
...
fix assertion where new_message_queue is overflowed when a message is pending
in the fragmentation queue.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@839 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-11-18 21:38:31 +00:00
Steven Dake
27b272c404
defect 898
...
don't need to copy message to fragmentation data buffer if message can be
multicasted as is.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@827 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-09-26 21:31:25 +00:00
Steven Dake
90181d3dd1
defect 897
...
fix new_message_queue can be overwritten
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@825 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-09-26 21:27:57 +00:00
Steven Dake
21199e23cc
defect 828
...
assert in totemsrp_avail occurs with certain test cases. The code was rounding
down to zero when calculating the number of messages required. This patch adds
one in all cases so no roundoff occurs.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@807 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-29 19:50:53 +00:00
Steven Dake
5613db03a1
enhancmement 821
...
Global reorganization of totem code and also many feature enhancments
These include:
need to specify whether authentication is enabled or dislabed in config file
need to specify frame size in config file
need redundant ring placeholder
need to specify version field of totem
need to support large frame sizes
need to break out threading code from totemsrp
need to break out network code from totemsrp
need to break out parser code from parse.c
and some others
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@794 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-17 19:17:45 +00:00
Steven Dake
283790b715
Add infrastructure support for multiring to totem library
...
Make totemsrp support multiple instances of a running protocol within one app.
Rename libtotem to libtotem_pg because of a name conflict with some movie player
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@782 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-29 20:55:25 +00:00
Steven Dake
f047d8f44f
defect 577
...
Implement token holding mode
(Logical change 1.207)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@670 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:36:36 +00:00
Steven Dake
8420e3b62a
defect 604
...
report fragmentation messages missing.
(Logical change 1.203)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@658 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-07 21:23:48 +00:00
Mark Haverkamp
632a94dd7d
Allow services to use the openais.conf file for setting custom options.
...
(Logical change 1.195)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@637 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-26 22:19:26 +00:00
Mark Haverkamp
4c203d518d
Add support for user specified timeouts from openais.conf
...
(Logical change 1.191)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@628 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-04 17:08:55 +00:00
Steven Dake
e14520f859
add an assert to catch a weird case.
...
(Logical change 1.180)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@603 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 23:29:31 +00:00
Steven Dake
c3e125b165
defect 478 - remove extra parameter to config change.
...
(Logical change 1.174)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@590 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:03:18 +00:00
Steven Dake
20f0520e8d
cleanup some shared datatypes.
...
(Logical change 1.150)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@532 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-16 18:23:54 +00:00
Steven Dake
eb8657f1e9
send ring_id through configuration changes patch from Muni Bajpai.
...
(Logical change 1.139)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@499 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-17 00:25:01 +00:00
Mark Haverkamp
c720930bfb
This fixes a potential problem where, because of a config change, a joining
...
node may not have a previous fragment of a message. It now discards
continuations of that message until it is complete and a new message
arrives.
(Logical change 1.132)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@476 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-04 21:33:20 +00:00
Steven Dake
e3741ea9f3
More fixes for defect 204. From Mark Haverkamp:
...
|Looking at the totempg config change function, I think that leaving
|members should have their assembly area reset. I assume that any data
|that is there is now invalid, and we wouldn't want it hanging around if
|they return. Also, I think that the wrong index was being used to
|initialize the assembly area index.
(Logical change 1.126)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@443 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-01 20:40:07 +00:00