Commit Graph

427 Commits

Author SHA1 Message Date
Steven Dake
94e827e318 Remove segfault when object database can't be loaded
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@994 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-16 02:05:27 +00:00
Steven Dake
b394a79248 Remove segfaults when object database can't be loaded for some reason.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@993 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-16 02:03:45 +00:00
Steven Dake
ca04a99884 defect 1201
cleanup poll_dispatch_delete in trunk


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@991 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 08:27:48 +00:00
Steven Dake
990d0af0ce remove warnings form totemrrp and also fix bug where send_flush wasn't
being called for the active replication algorithm


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@990 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 08:04:21 +00:00
Steven Dake
613cc0ec9d remove printf on evs join because groups may be binary data and crash executive
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@989 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 07:52:28 +00:00
Steven Dake
6066442cd8 Fix warning about unsigned int passed to orf_token_rtr for flow control count
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@988 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 07:42:30 +00:00
Steven Dake
6366d52c82 Fix warning regarding unsigned int for node_id
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@987 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 07:41:45 +00:00
Steven Dake
6199aaa3bd Fix object_priv_get to actually call object_priv_get instead of object_priv_set
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@986 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 07:38:25 +00:00
Steven Dake
ef259f5a5d cleanup warning in service.c because unsigned char * is passed to atoi instead
of char *


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@985 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 07:29:57 +00:00
Steven Dake
4ae4efb43a Add missing vsf.h from previous commit
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@984 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-15 07:28:11 +00:00
Steven Dake
758719ea87 fix fc5 segfault correctly by removing code that violates strict aliasing
rules.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@983 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-13 23:20:03 +00:00
Steven Dake
dd18b864d8 scale part 3
componentize YKD dynamic linear voting algorithm


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@982 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-13 23:11:07 +00:00
Steven Dake
95956d7beb Improvement of the rrp_algo data structure to support only running totemnet
api calls on the appropriate totemnet interfaces.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@981 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-13 05:39:51 +00:00
Steven Dake
701b56e551 move nodeid from interface section to totem section
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@979 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-13 02:50:51 +00:00
Patrick Caulfield
d8fc111119 - Fix BUILD_DYNAMIC=0 (add amfconfig.o to SERV_OBJS)
- add objdb->object_find_reset() before looking for user/group names.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@978 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-10 09:40:30 +00:00
Patrick Caulfield
64a83a764f Split the logging config options into three keys: to_file, to_stderr & to_syslog
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@977 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-10 08:24:34 +00:00
Steven Dake
bf65af760d defect 1191
Add more support for the redundant ring protocol.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@976 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-08 23:14:52 +00:00
Steven Dake
e1cad44148 defect 1190
scale to 128 nodes more effectively by dynamically sending partial structures
in the commit token ahd memb_join messages.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@975 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-08 22:25:14 +00:00
Steven Dake
6a49f1befc defect 1139
reorg of code to better support creating external service handlers


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@972 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-08 22:05:51 +00:00
Steven Dake
fd9d3f0a76 defect 1170
another fix for the assertion in memb_recovery_enter


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@971 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-08 22:05:00 +00:00
Patrick Caulfield
f870208608 Use the tmp variable in the right iterator loop !
With debug enabled, that's a guaranteed crash in cpg when a node leaves.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@970 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-07 15:05:24 +00:00
Patrick Caulfield
3568f26625 Use objdb for configuration. All components now get a reference to
the objdb rather than openais_config.

The default config object "aisparser" reads openais.conf as before, but can
be overridden by an environment variable.

Bug 1132



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@969 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-06 10:31:28 +00:00
Steven Dake
c5dbe6ea7b defect 1170
remove extra debug exit(1


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@968 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-06 07:37:08 +00:00
Steven Dake
29c19bf56e defect 1170
Fix recovery protocol to avoid assertion in memb_state_recovery_enter


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@967 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-06 07:32:21 +00:00
Steven Dake
74952a56a3 defect 205
implement totem single ring protocol flow control algorithm


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@966 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-03 22:45:13 +00:00
Patrick Caulfield
0fcbd1e12c Set the object value length too.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@965 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-04-03 08:47:42 +00:00
Steven Dake
b8589392f1 defect 1172
checkpoint service asserts under load during configuration changes


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@962 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-31 19:55:52 +00:00
Steven Dake
f52c38ffac defect 1153
Fix segfault with sync service if syncronization is interrupted during recovery.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@960 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-29 19:02:42 +00:00
Muni Bajpai
728b79d7d4 defect 1192
Fixes the issue of ckpt sections getting reordered and also fixes the issue of synchronizing ckpt while under the retention timer.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@959 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-28 21:49:49 +00:00
Patrick Caulfield
472e59e30a Call a service's config_init_fn() as soon as it is loaded.
Then call exec_init_fn() after other initialisation has happened.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@958 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-28 12:32:45 +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
d07ee75762 objdb merge
add missing service.c file



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@953 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-23 17:32:42 +00:00
Steven Dake
4a33ba11fa defect 1139
merge object database and do a general refactor of the code


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@952 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-18 21:00:19 +00:00
Steven Dake
ab640472a5 Patch from Hans
This patch (against r950) makes it possible to change the directory
where aisexec searches for configuration files. Pretty much in line with
the possibility to specify user and group. Just do:

make OPENAIS_CONFDIR=/tmp/ais



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@951 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-17 09:36:13 +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
Muni Bajpai
5e307fe31e Fix the innacurate dataSize in the Checkpoint Read response reported by Bjorn.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@949 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-15 20:46:08 +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
f99f38363f defect 1117
binding to localhost doesn't work.  This patch reenables that functionality.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@947 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-08 07:16:28 +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
Fabien Thomas
dbe3eeb295 repair OPENAIS_COVERAGE, OPENAIS_PROFILE
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@944 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-07 22:50:50 +00:00
Fabien Thomas
6fdfd15c17 use sched_get_priority_max to set the maximum priority
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@943 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-07 22:48:43 +00:00
Muni Bajpai
0c0cd07156 defect 1115
added support for reinitializing synchrony to support ongoing sync during a re-configuration.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@942 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-07 19:40:23 +00:00
Muni Bajpai
197b23317c defect 1115
fix faulty check.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@941 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-06 22:02:47 +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
Muni Bajpai
cbaa6601d2 bug 1115. Fixes the synchronization algorithm which was skipping services.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@938 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-06 02:44:04 +00:00
Muni Bajpai
1bc174c761 Bug Fix for memory leak in ckpt section management. Bug 1112
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@937 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-05 22:33:24 +00:00