Commit Graph

134 Commits

Author SHA1 Message Date
Steven Dake
0865007a34 Fix typo is clc_cli_script
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@963 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-31 20:10:33 +00:00
Steven Dake
1363452887 patch from Hans to support amf B types
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@957 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-27 17:37:21 +00:00
Steven Dake
cc89d721cc enhancement 1145
Patch from Lars to implement csi attribute setting in config file and delivered
via callback.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@956 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-24 18:48:47 +00:00
Steven Dake
856c745591 Patch from Hans to fix up the configurable /var/run and /etc/ais directory
support.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@955 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-24 18:25:55 +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
b855d18145 Patch from Hans Feldt
This small patch (against r948) adds variable CPPFLAGS to all make rules 
that compiles `.c' files into `.o' files.

This makes it possible to set CPPFLAGS on the command line as in:

$ make CPPFLAGS=-DAMFDEBUG

Editing the makefile when prototyping is then not needed.

Another reason is that some of the openais C files are built using the 
implicit rule for C files (which uses CPPFLAGS). The change makes rules 
consistent with the implicit rule.

It also adds a few missing files to the clean make target.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@950 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-16 05:41:28 +00:00
Steven Dake
0abc730b42 defect 1113
Checkpoint iteration is totally broken.  This patch makes checkpoint iteration
work properly for multiple checkpoint iterators and now is compliant with the
specifications for the trunk version.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@948 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-08 07:29:27 +00:00
Steven Dake
10c7243f5c defect 1120
The AMF code doesn't detect invalid healthcheck keys and crashes when an
invalid healthcheck key is specified.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@946 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-08 07:13:27 +00:00
Steven Dake
9a0d93ade8 defect 1116
The IPC code spins in recvmsg in the library resulting in poor performance
and deadlock in the AMF service.




git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@945 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-08 07:10:51 +00:00
Patrick Caulfield
e3ba0b9669 Fix testcpg.c so it actually works.
in exec/cpg: Don't regard a process as joined until all all nodes have
             received the message.
             Don't send other nodes' processes in a joinlist message!


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@939 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-06 08:46:56 +00:00
Patrick Caulfield
55ccceeb54 Add cpg (closed process groups) component.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@936 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-03 08:46:45 +00:00
Steven Dake
cf160dd9cd Fabien's patch for the BSD/Darwin port.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@926 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-21 07:32:00 +00:00
Steven Dake
e665c14f55 defect 1065
memory leak in checkpoint iteration when IterationNext has a failure condition
(like NO_MORE_SECTIONS)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@910 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-01 20:57:01 +00:00
Mark Haverkamp
f8e1f79a41 defect 1049
Fix compile error in testlck and testmsg.  Use SA_AIS_OK.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@906 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-25 19:16:31 +00:00
Steven Dake
8eefe473ef defect 1046
SaErrorT in trunk branch, but only SaAisErrorT should be used


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@902 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-24 07:19:11 +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
7b2ddfa428 enhancement 1020
Adds AMF B.01.01 support - still needs alot of work


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@879 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-03 05:51:38 +00:00
Steven Dake
58841ee8d5 defect 993
ckpt-rd.c and ckpt-wr.c in the test directory don't run with the latest code.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@866 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-12-20 19:01:30 +00:00
Steven Dake
64053a7a09 fix documentation error from specification which identifies
SaLckResourceLockAsync as the function name in some places but
saLckResourceLockAsync in other places.  We settled on saLck since it matches
the rest of the specifications.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@859 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-12-05 22:01:22 +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
dfa61b911d defect 914
fix gcc 4 specific compile warnings and compile errors


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@834 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-10-27 00:53:36 +00:00
Steven Dake
52fc4efc54 defect 903
First cut at a distributed locking service.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@829 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-09-29 03:38:59 +00:00
Steven Dake
639a817c89 reduce maximum message size since 253000 is beyond the max.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@818 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-09-20 23:05:55 +00:00
Steven Dake
327f7bde1d defect 854 - invalid return value displayed in test program
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@810 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-09-06 21:50:24 +00:00
Steven Dake
ca58a16b6b defect 841
Rabbe reported that cluster track callback operations dont work properly.
This patch fixes that problem.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@809 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-30 20:29:13 +00:00
Steven Dake
478307dfed defect 833
Rabbe reported that the encoding of the ipv4 address in SaClmNodeAddressT is incorrect


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@804 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-25 22:09:03 +00:00
Steven Dake
1bceb1d237 defect 501
this patch fixes short reads and writes between the library and executive


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@797 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-17 19:37:24 +00:00
Steven Dake
e7f1e9200f enhancement 813
Rename ais_types.h header file to be more compliant with sa forum


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@796 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-17 19:27:25 +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
4ff4c440ca Patch from Russell Bryant to fix up gcc 4 warnings
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@793 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-12 22:29:35 +00:00
Steven Dake
d1d04c7806 defect 796
fix saClmClusterTrack to operate according to specs.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@786 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-29 21:18: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
Mark Haverkamp
61f90c42e6 Fix for bug 776. Don't require retained events to expire
before deleting the channel on unlink.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@780 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-27 20:19:39 +00:00
Steven Dake
ccdeec64cf defect 785
ckptbenchth is completely broken.  This patch fixes it to operate properly.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@778 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-27 20:06:35 +00:00
Steven Dake
8b16ba4df8 defect 788
ckptbench returns error 7 at 20000 byte size writes.  The benchmark program
improperly creates the checkpoint parameters.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@777 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-27 20:05:34 +00:00
Mark Haverkamp
e772a502ef Fix for bug 773. Not quite the full fix, but the best we can do
for now.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@776 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-26 22:48:31 +00:00
Mark Haverkamp
cfbd699177 Fix for bug 782. Receved events may not be modified.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@774 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-26 22:45:56 +00:00
Steven Dake
d294fbf86d defect 754
tests dont build because makefile damaged


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@771 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 17:06:12 +00:00
Steven Dake
1bf4e3bb25 defect 734
cleanup include files and exports from libraries



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@731 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 19:57:48 +00:00
Steven Dake
91c6b6d699 Patch from Muni Bajpai to improve synchronization after a merge.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@713 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-28 19:01:25 +00:00
Mark Haverkamp
d330f32d78 The A spec required patterns to be set but the B
spec doesn't.  Fix lib/evt.c and test/testevt.c



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@708 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-23 14:44:29 +00:00
Mark Haverkamp
217207babb Some fixes to the event service based on the saftest event
tests results.  

The changes may affect applications currently using the event service. 

1. Timeout value to the saEvtChannelOpen call was updated to use
SA_TIME_MAX instead of 0 for infinite timeout.

2. added cleanup in the library to remove associated events when a
channel is closed, and remove associated channels when finalize is
called.

3. Added some new checking args for NULL and returning the correct error
code.

4. fixed dispatch to return correct status with SA_DISPATCH_ONE and no
available poll data.

5. Makefile had bad dependency for evt library build.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@706 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-21 22:19:03 +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
Mark Haverkamp
1f1f048efc Fix version handling code to be B spec compliant.
BUG 623.

(Logical change 1.206)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@665 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-15 21:09:42 +00:00
Mark Haverkamp
b3767775c4 Fixes to patterns and filters for B API spec support.
(Logical change 1.204)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@661 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-13 20:07:55 +00:00
Steven Dake
8a8983126d defect 595
There are various bugs with saCkptCheckpointOpenAsync that result in it
crashing the executive, library, or just failing the saftest conformance
suite.

(Logical change 1.200)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@650 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-06 20:19:36 +00:00
Steven Dake
a7a2c41da3 adds evs_membership_get api
(Logical change 1.196)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@642 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-26 22:37:31 +00:00
Mark Haverkamp
2b18ac9b77 More updates to make event conform to B spec.
(Logical change 1.193)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@633 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-25 20:46:41 +00:00
Mark Haverkamp
c4d6184eb5 Fix memory leak.
(Logical change 1.192)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@631 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-25 20:42:45 +00:00
Steven Dake
b99706a7e3 defect 512 - some ais header file defines are wrong.
(Logical change 1.189)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@624 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-22 18:46:23 +00:00