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
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
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
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
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
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
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
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
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
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
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
e5b94a352e
COVERITY 14: free zcb_mapped if memory_map() fails.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2544 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-11-22 06:27:09 +00:00
Steven Dake
6ea4afe60f
Revert commit 2523 which results in segfaults under some workloads.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2536 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-22 22:29:02 +00:00
Steven Dake
60e406f355
Resolve shutdown problems for pacemaker use case.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2531 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-20 21:07:50 +00:00
Angus Salkeld
07072bd0b1
Add a log_printf function to coroipcs so we can pass the log level
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2530 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-18 18:15:24 +00:00
Angus Salkeld
494bf45ebf
Avoid array out of bound error.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2529 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-14 23:05:18 +00:00
Steven Dake
765fa65351
Patch from jflesch to fix segfault when using sysv semaphores that the thread
...
state is checked prior to the semaphore operation, not after it has completed.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2524 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-14 19:06:37 +00:00
Steven Dake
59ecd3ad4a
totem process group optimization to not copy data into staging buffer if
...
it is to be immediately ordered by totemsrp. Instead pass that data as an
iovector element.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2523 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-14 18:56:54 +00:00
Angus Salkeld
49345f48f8
stats: prevent a div by zero if totem_count is zero.
...
patch by Chrissie
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2522 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-14 04:06:42 +00:00
Angus Salkeld
97ed934966
Fix the OSX build (broken by stats patches)
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2521 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-13 08:13:53 +00:00
Andrew Beekhof
4fba207d42
Add SIGTERM support and have the init script wait for corosync to actually terminate. Bud rh#525552
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2520 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-13 06:16:14 +00:00
Angus Salkeld
948ca19aa7
Add some missing calls to increment the relevant stats.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2519 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-12 21:56:23 +00:00
Angus Salkeld
4e6e33467d
allow coroipcs to work without calling stats initialization.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2518 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-12 21:50:10 +00:00
Angus Salkeld
73a24c0352
Add totem stats to objdb.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2517 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-12 17:30:20 +00:00
Angus Salkeld
f78e719713
Add per service-function statistics.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2515 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-12 00:39:39 +00:00
Angus Salkeld
afbbc5e5ff
Add connection related statistics to the object db.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2514 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-12 00:36:55 +00:00
Angus Salkeld
e66297a886
Test the key value size for typed keys.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2513 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-11 23:46:07 +00:00
Angus Salkeld
0c9a6c49ff
teach object_key_increment() key types.
...
This is so we can increment all integer types correctly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2512 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-11 22:53:13 +00:00
Angus Salkeld
73b7aa19bb
Add value types to objdb keys.
...
This allows you to create a key with a know type.
And then get the type with the key value.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2511 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-10 03:20:38 +00:00
Christine Caulfield
2433ee3b2c
This patche fixes a couple of small problems with votequorum:
...
- if a single node is booted with votequorum loaded then
corosync-quorumtool shows zero nodes and no votes.
- votequorum doesn't always tell the main quorum module when a new node
has joined the cluster (principally itself. this bug is actually tied
into the above)
I've also added quorum to the default list of services. As quorum has
been decoupled from sync it will not interfere with normal operations as
it used to do and it makes more sense to have it there than not.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2510 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-06 12:57:35 +00:00
Steven Dake
978b60806b
Totem IBA implementation.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2481 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 06:23:04 +00:00
Steven Dake
6ad014a315
make main_service_ready function static.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2480 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 06:06:31 +00:00