Commit Graph

673 Commits

Author SHA1 Message Date
Steven Dake
6d7baee4b0 Remove extra unneeded configuration option from logsys.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1554 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-06-20 06:04:03 +00:00
Steven Dake
addd57e7a3 Use logsys_facility_id_get to do the string conversion instead of doing
it in the openais configuration parser.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1553 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-06-20 05:54:11 +00:00
Steven Dake
f323f47343 Message service implemntation - more apis now supported.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1552 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-06-13 18:36:21 +00:00
Steven Dake
d7fdcacc90 Fix linking of other projects against logsys on ppc64.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1550 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-20 16:26:16 +00:00
Steven Dake
1cfebbddca Remove exit when logsys files can't be created.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1549 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-20 16:18:28 +00:00
Steven Dake
9dc78ee584 Fix loading of multiple objects.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1547 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-14 15:48:54 +00:00
Steven Dake
8f2ec814d1 Repair invalid commit.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1545 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-12 15:57:42 +00:00
Steven Dake
7ec44aface Add ckpt service back in from incorrect patch that was committed found during tesitng of rpm of 0.83-1.fc10.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1544 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-12 15:52:11 +00:00
Steven Dake
46b0163813 Change all email addresses that were sdake@mvista.com to sdake@redhat.com.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1541 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-12 13:48:06 +00:00
Steven Dake
39d574d0bb Repair loading of external services.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1540 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-12 13:45:38 +00:00
Steven Dake
b5e1e1a9ea Remove executable permission from flow.c
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1539 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-12 13:35:13 +00:00
Steven Dake
475df23583 Patch to remove segfault on the exiting of a service.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1538 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-09 16:48:16 +00:00
Steven Dake
daaa6eeab0 Patch to allow controlled exit of a service.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1537 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-09 16:47:21 +00:00
Patrick Caulfield
fef53eb2c4 Expose confdb write to the library.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1536 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-07 07:27:37 +00:00
Steven Dake
a316334d31 Apply suggestion from Andrew for srcdir functionality.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1533 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-05 14:14:25 +00:00
Steven Dake
b12c024493 Allow make from the exec directory.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1532 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-05-02 14:17:03 +00:00
Patrick Caulfield
87e7ea9c1e Add writeback call to objdb
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1530 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-30 15:32:04 +00:00
Steven Dake
37c7b6184b Fix build error.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1529 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-29 10:08:11 +00:00
Steven Dake
4ad44b9c86 load and unload service engines at runtime.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1528 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-28 16:25:47 +00:00
Steven Dake
c8c2ad6df6 Patch to add new api to logsys to get priority names from subsystem names.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1527 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-28 16:00:38 +00:00
Steven Dake
bd54e87e16 Change initialization order for logsys logging to files to work properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1526 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-28 15:59:35 +00:00
Steven Dake
70f19eb335 Fix syscall usage for keygen application
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1523 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-23 12:35:44 +00:00
Patrick Caulfield
6bc3231549 Fix logsys_config_priority_set() so that it sets the priority
of the local subsystem and not always "MAIN".


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1522 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-23 10:39:21 +00:00
Steven Dake
a2a2d486bc Build on latest glibc.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1520 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-22 14:36:52 +00:00
Steven Dake
2074e8df56 Patch to reinitialize logsys internal variables after a fork for correct
operation.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1519 fd59a12c-fef9-0310-b244-a6a79926bd2f
2008-04-21 15:15:48 +00:00
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