Angus Salkeld
8671945cef
totemsrp: fix transitional configuration changes with long token timeouts
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2651 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-02 06:24:01 +00:00
Steven Dake
2f24513d87
Fix coroipcs message corruption that occurs when a message fills the remainder
...
of the dispatch buffer with a full message.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2650 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-30 23:02:40 +00:00
Jan Friesse
f4a644c711
Add schedwrk_create_nolock function
...
This patch adds schedwrk_create_nolock, which will not call
serialize_lock before execution of callback.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2649 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-22 09:45:29 +00:00
Jan Friesse
5524a4738a
Pass correct poll handle to poll_stop on exit
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2648 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-21 12:48:30 +00:00
Jan Friesse
68d7e86c2f
poll_dispatch_delete - ability to return 0
...
Patch fixes poll_dispatch_delete, so it is able to return 0
(success), when requested FD was found.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2647 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-21 12:46:09 +00:00
Jan Friesse
c9baa674f5
Fix setting invalid mode in log destination
...
This fixes problem in revision 2642, when only last
line of log destination setting is really applied.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2646 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-20 13:22:38 +00:00
Jan Friesse
64c6c6f324
Fix malloc deadlock in signal handler
...
This patch solves situations, where malloc is called
inside signal handler. It creates thread, which waits
for semaphore unlock and then starts shutdown sequence.
RHBZ#547511
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2644 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-14 12:54:46 +00:00
Jan Friesse
1649931691
Fix freeze of IPC library connection on sem_wait
...
This patch solves library waiting on sem_wait. It doesn't
solve all other problems, which can make corosync not
to exit (malloc race, global lock deadlock, ...)
RHBZ#547511
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2643 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-14 08:39:06 +00:00
Jan Friesse
99db356765
Fix coroparse to allow white chars before comment
...
- allows white characters before #
- new function to parse log destinations (remove code duplicity)
- clarify man page
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2642 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-13 09:52:07 +00:00
Jan Friesse
4d2e24a2c3
Generate nodeid value when unset on BSD
...
Generated nodeid is generated in same way as
on Linux is.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2641 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-01-11 10:12:17 +00:00
Steven Dake
dc2a0e68d6
Remove invalid assertion in totemsrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2640 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-15 19:22:36 +00:00
Andrew Beekhof
e725dd3edd
Correctly determine current state in init script
...
If two stop actions are ever performed simultaneously, then neither will terminate.
With the default implementaiton of __pids_pidof, the status() function from
/etc/init.d/functions incorrectly thinks the other stop action is a real
corosync process.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2639 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-15 11:52:48 +00:00
Angus Salkeld
ec6e57dd42
Allow empty (default) consensus timeout.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2638 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-08 07:48:53 +00:00
Steven Dake
d891884c27
Bump verion to 1.2.0.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2581 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-08 00:02:00 +00:00
Steven Dake
208d907f63
Remove string overwrite if many recovery messages are originated.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2580 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-08 00:01:39 +00:00
Steven Dake
c0883b4469
Remove compiler warning in vsf_quorum.c.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2579 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 23:23:42 +00:00
Steven Dake
f434e74faa
Remove compiler warning in totemsrp.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2578 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 23:21:01 +00:00
Steven Dake
0769c9444f
Update to AUTHORS file.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2577 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 23:18:44 +00:00
Fabio M. Di Nitto
47ae82b0bf
Update spec file to deal with new libsam
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2576 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 23:13:34 +00:00
Fabio M. Di Nitto
8871924de5
Generate .pc file for new libsam
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2575 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 23:13:14 +00:00
Steven Dake
6097e3a358
SAM man pages.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2574 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 22:40:49 +00:00
Steven Dake
b4367e6075
Set boolean indicating the retrans flag was set to 1 to 0 when setting retrans
...
flag in token to zero.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2573 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 18:41:49 +00:00
Steven Dake
ff5cd7d57c
Make assertions for range checking of message delivery check with the define
...
instead of magic numbers that are not valid if the define changes.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2572 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 18:22:48 +00:00
Jan Friesse
c6242c9a52
Remove potentially thread unsafe call of strftime
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2571 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 17:14:44 +00:00
Jan Friesse
0ed4d53083
SAM implementation merge
...
The SAM library provide a tool to check the health
of an application. The main purpose of SAM is to restart
a local process when it fails to respond to a healthcheck
request in a configured time interval.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2570 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 17:06:53 +00:00
Steven Dake
adf8d6db24
Prevent lockup in recovery state in totem after 206 messages are originated.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2569 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 05:03:25 +00:00
Steven Dake
3020fd5742
Fix recovery messages to be proper length to remove segfault that occurs during
...
recovery.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2568 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-07 05:02:28 +00:00
Steven Dake
b3e19b2905
Force consensus timer to be at minimum 1.2 * token to prevent one group of
...
nodes from executing a token timeout in the COMMIT state while another node
executes a consensus timeout, showing to applications as a temporary network
partition.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2567 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-06 01:35:05 +00:00
Christine Caulfield
73d28850e0
Make man page match reality of totem configuration values.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2566 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-04 16:11:49 +00:00
Christine Caulfield
2e2581f574
This puts multiple nodeids on each [QUORUM] Members line instead of
...
putting each nodeid on a separate line. With more than a few nodes the
excessive lines become a real nuisance, and anyone up around 32 nodes
may literally be scrolling through hundreds of those lines.
from David teigland
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2565 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-04 16:10:59 +00:00
Angus Salkeld
c052bd3f3f
stats: don't calloc the totemsrp stats struct.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2564 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-03 18:18:29 +00:00
Angus Salkeld
acf9a8d85f
Correct some ugly indentation.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2563 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-03 18:13:52 +00:00
Angus Salkeld
b63c2c27b6
objdb: fix memory leaks when objects are destroyed.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2562 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-03 08:36:31 +00:00
Angus Salkeld
663f894498
make sure key_names past from confdb are null terminated.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2561 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-02 22:14:00 +00:00
Jan Friesse
9edbf61401
bsd: Fix mlockall on FreeBSD version >= 8.0
...
FreeBSD version 8.0 and greater supports mlockall
syscall correctly. So configure.ac is changed to detect
FreeBSD version and main.c is changed to support it.
Resolves: rhbz#513687
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2560 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-02 15:09:18 +00:00
Fabio M. Di Nitto
47b9e296f9
spec file cleanup
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2559 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-12-02 06:30:27 +00:00
Fabio M. Di Nitto
398a381965
Fix threads vs fork init order
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2558 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 23:01:51 +00:00
Fabio M. Di Nitto
60f6e2f299
Fix stop regression
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2557 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 21:28:30 +00:00
Fabio M. Di Nitto
b7ebf11081
Expose service.d config directory
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2556 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 20:18:48 +00:00
Steven Dake
72fe262478
Start pause timer at initialization so first gather doesn't result in pause
...
timeout operations.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2555 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 19:11:20 +00:00
Fabio M. Di Nitto
dac5df7dd8
Clean up init scripts and make a single generic one
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2554 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-30 18:56:28 +00:00
Angus Salkeld
29eb20a389
Rename totem_new_msg_signal() to something more generic.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2553 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-29 18:42:00 +00:00
Angus Salkeld
27d383276b
coroipcs: Add a queue_size stats counter to each ipc connection.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2552 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-29 18:28:39 +00:00
Angus Salkeld
ce8046f353
coroipcs: add logging for flow control state changes.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2551 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-29 18:25:51 +00:00
Steven Dake
ee226d0730
Patch to use proper IFA on Linux platforms to match interface addresses when
...
netmask is not 255.255.255.0.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2550 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-27 22:59:48 +00:00
Angus Salkeld
3848fc2069
COVERITY 4: remove dead code in XYZ_dispatch().
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2549 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-23 00:32:31 +00:00
Angus Salkeld
a1a5e21975
COVERITY 17: fix exit handling in show_votes().
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2548 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-22 23:59:51 +00:00
Angus Salkeld
34ddb1cb14
COVERITY 12: prevent overrun of logsys output buffers.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2547 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-22 23:19:41 +00:00
Angus Salkeld
28f7c1e51f
COVERITY 13: prevent buffer overrun in quorum-tool.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2546 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-22 06:34:11 +00:00
Angus Salkeld
870e4549df
COVERITY 11: remove dead code from cpg_iteration_next().
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2545 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-22 06:29:46 +00:00