Commit Graph

648 Commits

Author SHA1 Message Date
Patrick Caulfield
9ab240e478 Add confdb, a library to access the configuration object database.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1516 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-16 12:07:05 +00:00
Patrick Caulfield
ba85a91983 Fix locking in logsys.
Patch from Fabio M. Di Nitto <fabbione@fabbione.net>


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1515 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-16 10:13:06 +00:00
Patrick Caulfield
2846b57ea1 Add some new calls into objdb.
These allow replacing/removing keys, and deleting a whole object subtree,
iterator functions to enumerate all objects/keys on an object,
and a dump call for debugging.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1505 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-03-10 15:18:12 +00:00
Steven Dake
371a64173c Remove closing of ttys that slipped in improperly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1494 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-01-08 05:12:05 +00:00
Steven Dake
97618d8c4f Force logging to stderr if the -f flag is specified.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1491 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-12-10 21:09:48 +00:00
Steven Dake
93ce442597 Allow multiple config plugins to be loaded at start time and set the config
object database objects.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1490 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-12-10 21:06:12 +00:00
Steven Dake
b471e97b07 Patch to make sure make clean works as advertised.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1488 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-11-28 18:52:35 +00:00
Steven Dake
f755b34a6c Properly daemonize and dup file descriptors to /dev/null.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1487 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-11-28 18:31:03 +00:00
Steven Dake
8803c75760 Patch to set system from field properly in retransmitted messages.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1484 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-11-28 18:04:55 +00:00
Steven Dake
fb9c19d634 Remove & when regular reference works properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1483 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-11-28 18:03:54 +00:00
Steven Dake
2872347abe Patch to not increment the ring seq id on the first operational ring.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1482 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-11-28 18:03:12 +00:00
Fabien Thomas
30c10a4384 add missing objdb for static build
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1476 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-25 09:46:00 +00:00
Steven Dake
c5ce3f5a5c Patch to close all open files on background run operation.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1474 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-22 16:16:29 +00:00
Steven Dake
ba2f3a391a Fix missing commit from timer.c in trunk.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1472 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-22 15:53:45 +00:00
Steven Dake
f40e9a1283 Endian convert downlist messages from cpg.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1470 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-22 15:42:36 +00:00
Fabien Thomas
2890fe39bd correct ifdef that must be ifndef because under FreeBSD alloca.h is in stdlib.h
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1468 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-16 13:20:24 +00:00
Patrick Caulfield
94561626e6 Remove some includes from .h files so they can be installed.
Also install flow.h & ipc.h for external services.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1467 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-10-10 10:33:55 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
Fabien Thomas
b392956ef4 repair BSD/Darwin build by moving HZ constant in tlist.h
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1381 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-12 16:43:50 +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
Steven Dake
64fb1d1c18 Change timers to add duration and absolute timers. Use nanoseconds since
epoch to track timers.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1378 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-06-04 23:21:46 +00:00
Patrick Caulfield
5e2605c854 Don't try and remove a lock from a list if it's not on one, but DO remove
it from the resources list when it gets unlocked.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1376 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-05-30 08:41:46 +00:00
Steven Dake
a161cc23c8 on 32 bit platforms, the message source conn info could have uninitialized
values.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1371 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-05-17 20:37:20 +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
Steven Dake
f3cd7588d4 Fix section iteration size comparison
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1367 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-04-24 23:10:51 +00:00
Steven Dake
a4029d65a5 Solaris port patch to fix a few problems from last big patch.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1355 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-03-14 19:02:49 +00:00
Steven Dake
cb154572a2 Patch from Renaud to report some broken Solaris porting from past.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1353 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-03-06 16:18:44 +00:00