Steven Dake
d0f5ef7ed1
Fix problem where adding a timer in a timer callback would lock system
...
and also timer additions were not protected by mutex because of backwards
pthread_equal comparison.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1463 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-02 16:29:33 +00:00
Steven Dake
c39ae9cc70
segfault does not use source.conn unless the originating
...
request is local. The actual code tries to dereference pointers
created on another node.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1462 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-28 01:31:34 +00:00
Steven Dake
11453080bb
lock_algo queues lock requests rather than ignoring them if
...
an exclusive lock is held on a resource. This led to stale
processes trying to acquire an exclusive lock forever.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1461 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-28 01:30:50 +00:00
Steven Dake
983ee42d4c
Patch to fix dependencies in build of test programs.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1460 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-28 01:08:39 +00:00
Steven Dake
94612689e1
Fix linking of library objects.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1459 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-27 22:16:58 +00:00
Steven Dake
fc1a08d411
Allow override of the LCRSO directory from the Makefiles or command line
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1458 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-27 09:14:02 +00:00
Steven Dake
16d73f15da
Fix static libs installation logic inversion
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1457 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-27 09:12:46 +00:00
Steven Dake
b6071cc4c0
Makefile system improvements from Angus Salkeld
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1456 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-27 08:50:17 +00:00
Patrick Caulfield
dc1c4ae279
Install logsys.h rather than print.h
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1454 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-20 15:26:52 +00:00
Steven Dake
37e4f0f59c
Fix reference counting in LCR code. Also fix problem with inability to compile
...
from the exec directory because PREFIX wasn't defined for lcr_ifact.c.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1451 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-15 20:48:31 +00:00
Steven Dake
dcf2bb0137
Allow missing spots in the synchronization engine
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1448 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-15 20:32:36 +00:00
Steven Dake
be835fb345
Fixes the following problems:
...
1) the encapsulated and not encapsulated values for multicast messages
are now enumerated instead of magic number.
2) the endian detector is now set for new encapsulated messages intended
for transmission. previously these messages would use whichever endian
detector value happened to be in memory which could be a) correct endian
b) incorrect endian from another machine byte order message c) junk
values.
3) The retransmission flag is not set by default on new originated
tokens in the recovery state. Instead it is set based upon whether the
node actually can retransmit any messages.
4) some workaround code was removed that was necessary to make the
system work when #3 was incorrect
5) the my_install_seq and my_aru fields are compared based upon a window
instead of static comparison because it could be that the my_aru is
0xFFFFFF5 where my_install_seq is 5. In this case (after a lot of
messages are sent) the comparison would return the incorrect result in
the recovery phase of the algorithm.
6) The queue chosen for adding messages to the retransmission queue is
now set based upon the encapsulated bit rather then the current state of
the state machine.
7) the encapsulated bit is set properly in an endian conversion
operation for a multicast message header.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1447 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-15 20:14:55 +00:00
Steven Dake
3e788da191
Add missing files from the ais utils exporting patch.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1445 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-11 19:27:13 +00:00
Steven Dake
d03f47ac6e
Calculate the default path based on the project value of PREFIX
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1444 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 07:00:53 +00:00
Steven Dake
39d4d5fbd1
Ensure DESTDIR and PREFIX are properly used in Makefiles
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1443 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 07:00:13 +00:00
Steven Dake
e132bc580c
Expose utils to the user
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1442 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:58:41 +00:00
Steven Dake
adb37f5d49
Now that -l is set correclt yuse #include <header.h> instead of using quotes.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1441 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:57:41 +00:00
Steven Dake
f7bd11657b
Static libraries become out of date on Darwin once they are copied or moved
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1440 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:51:39 +00:00
Steven Dake
aedf0ed6ad
Use makefile loops where possible
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1439 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:50:52 +00:00
Steven Dake
2551a393c4
Provide information as to why a plugin refused to load
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1438 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:50:18 +00:00
Steven Dake
73d4db719d
Add extra brackets to clarify scope.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1437 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:49:43 +00:00
Steven Dake
1570bcf26b
Fix build dependencies
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1436 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:47:57 +00:00
Steven Dake
73bebf8ef2
If iface_ver0_p is not reset, then as long as the first plugin loads
...
then all subsequent plugins will report success.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1435 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:47:16 +00:00
Steven Dake
45823185e7
Missing stdlib.h from lcr_ifact.c.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1434 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:46:41 +00:00
Steven Dake
69b128e700
HZ not always defined on all Linux systems.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1433 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:46:03 +00:00
Steven Dake
f81e95944b
Patch to allow CFLAGS and LDFLAGS modifications to take effect
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1432 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:45:35 +00:00
Steven Dake
5ef02ff3ba
Logsys testing system.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1431 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:43:20 +00:00
Steven Dake
3cbecd98c1
Fixes for the logsys system.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1430 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:41:19 +00:00
Steven Dake
f591f95e30
The man page for the logsys logging system.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1429 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:38:27 +00:00
Steven Dake
113a3c4f88
The logsys logging system. Read logsys_overview.8.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1428 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:38:10 +00:00
Steven Dake
4336be7c4c
totem srp merge from whitetank
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1427 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:24:00 +00:00
Steven Dake
fb2e10bedb
Patch to log security warnings when invalid identifier is used in message
...
header for a totem message.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1425 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:15:31 +00:00
Steven Dake
ca24b42838
Fix problem in synchronization engine which results in possible failures of
...
the synchronization engine.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1424 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:12:56 +00:00
Steven Dake
6d0219394e
Patch to allocate event dispatch data in saEvtInitialize instead of directly
...
on the stack for small thread-stack sized dispatch functions.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1421 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-24 19:45:23 +00:00
Steven Dake
045d36cb83
Patch to not overwrite defualt configuration file or amf.conf file when
...
executing make install
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1420 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-11 04:40:42 +00:00
Steven Dake
96266589fb
Allow make doxygen to work properly
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1418 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-11 04:36:52 +00:00
Steven Dake
9d5eefa46c
Patch to add amf_strdup instead of malloc and then copy for amf service.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1417 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-11 04:35:50 +00:00
Steven Dake
9d27cc2f35
Fix minor leaks caused by not calling pthread_mutex_destroy throughout the tree.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1412 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-07 23:52:21 +00:00
Steven Dake
ba24191073
Patch to fix compile warning on mac platforms.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1411 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-07 23:49:24 +00:00
Steven Dake
484ad44f3a
Add the testcpg2 file missing from a previous commit.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1405 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-07-02 21:13:52 +00:00
Fabien Thomas
1c4833edba
remove warnings under Darwin for missing includes and too many parameters in TRACE2
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1404 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-07-02 12:41:53 +00:00
Patrick Caulfield
a245f25ac8
Clear pid when we leave a process group
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1399 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-25 12:34:44 +00:00
Steven Dake
ad3506cfdc
Fix bug where if checkpoint section is expired about the same time as a
...
checkpoint is deleted, a warning would be displayed.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1398 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-25 08:45:58 +00:00
Steven Dake
7c3dcc065d
Update testckpt program to properly test checkpoint system.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1397 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-25 08:45:29 +00:00
Steven Dake
39b3f0d5a6
Add cpg_local_get api to cpg service
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1391 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-25 03:04:35 +00:00
Steven Dake
7b65087d28
Add IP address takeover as an AMF component
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1388 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-24 06:44:27 +00:00
Steven Dake
6377455cd7
Add passive monitoring support to AMF.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1386 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-23 09:14:15 +00:00
Patrick Caulfield
8507e14dd1
Add man pages for cpg_context_* and fix library exports to include them too.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1385 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-14 14:21:49 +00:00
Patrick Caulfield
5e056ec1a2
Install the timer.h file so it can be used by
...
external services and remove a dependency on tlist.h
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1384 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-13 09:09:10 +00:00
Patrick Caulfield
d147700e95
Currently saLckResourceUnlockAsync leaves the lockid in the handle database even
...
when the lock has been unlocked. This can cause exec crashes if the lock is
unlocked twice.
This patch adds an extra field to the res_lib_lck_resourceunlockasync structure
so that the library can remove the lock from the handle database when the lock
is unlocked successfully, as well as code to do it, obviously.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1383 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-13 09:01:30 +00:00