Andrew Beekhof
e11dcf1df3
Prevent daemon from suppressing corefile generation
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2541 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-28 19:09:59 +00:00
Steven Dake
c3191a8f95
Bump version to 1.1.2.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2537 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-22 22:30:59 +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
181bfb6908
Bump revision to 1.1.1.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2533 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-20 22:40:29 +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
e2a39ede1d
Remove silly warning in corosync-objdb
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2516 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-10-12 17:29:19 +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
Fabio M. Di Nitto
15f3bc84c1
Update spec file to enable IBA support and sync with 1.1.0 release
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2507 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 08:55:43 +00:00
Steven Dake
95de20fb8f
Change version to 1.1.0 in trunk.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2504 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 07:00:32 +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
Steven Dake
692b723ae1
Remove unused variable in stress_cpgfdget.c.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2479 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 06:03:50 +00:00
Steven Dake
9b56e33ee8
Remove pointless warning.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2478 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 06:01:35 +00:00
Angus Salkeld
ce4e9902b6
turn off _POSIX_THREAD_PROCESS_SHARED for uclibc
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2477 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-25 02:27:50 +00:00
Steven Dake
7f29de49b0
Correct pload printing operation.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2473 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-22 07:46:24 +00:00
Steven Dake
45d68cab47
Fix merge error in previous commit.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2472 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-21 20:08:38 +00:00
Steven Dake
b3f661d295
Patch from Jerome to fix segfault in dispatch functions.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2468 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-21 19:03:16 +00:00
Steven Dake
6ae6f6e284
Fix abort with multiple cpg clients under heavy load.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2467 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-21 18:27:37 +00:00
Steven Dake
60d50de816
Remove warning in logsys compile related to const correctness.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2463 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-20 06:56:02 +00:00
Steven Dake
77e63f0044
Remove warning in coroipcc.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2462 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-20 06:53:10 +00:00
Steven Dake
215ad336f2
Fix sigpipe handling to ignore sigpipes on systems which support them.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2419 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-20 05:36:52 +00:00
Steven Dake
eb5fa99cae
Make delete operation work properly in coropoll.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2418 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-20 05:34:41 +00:00
Andrew Beekhof
8ec3339ba3
Darwin libraries need -install_name otherwise they're not usable without DYLD_LIBRARY_PATH (which is highly unrecommended)
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2417 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-16 09:02:35 +00:00
Steven Dake
f170a431ce
Fix error with revision 2415.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2416 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-14 20:27:45 +00:00
Steven Dake
c14c130df5
Fix dispatch returning TRY_AGAIN when using DISPATCH_ALL parameter because of
...
regression caused by revision 2046:lib/coroipcc.c.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2415 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-14 18:58:08 +00:00
Angus Salkeld
350cc0ae42
log the built-in features at startup
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2411 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-10 01:51:32 +00:00
Angus Salkeld
b13a7aba13
add small-memory-footprint option to configure
...
This adds the following option to configure:
--enable-small-memory-footprint
When enabled the following defines are set
to reduce the overall memory footprint.
MESSAGE_SIZE_MAX=1024*64
MESSAGE_QUEUE_MAX=512
PROCESSOR_COUNT_MAX=16
IPC_REQUEST_SIZE=1024*64
IPC_RESPONSE_SIZE=1024*64
IPC_DISPATCH_SIZE=1024*64
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2410 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-09 18:58:38 +00:00
Angus Salkeld
147c81ffab
don't return the ip address when the mask is not found
...
Currently totemip_copy (boundto,&ipaddr) is called even when the
required mask is not found.
This patch changes the behavior to only copy the ipaddr when the
mask is found.
The current behavior makes debugging an incorrect config really
confusing.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2409 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-09 18:55:17 +00:00
Angus Salkeld
f3b92eb6b3
Only insert the filename into the log, not the path.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2408 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-09 00:25:36 +00:00
Christine Caulfield
7f3da97ca3
Really add corosync-quorumtool
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2407 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-08 08:19:11 +00:00
Christine Caulfield
6f3fabe398
Add corosync-quorumtool
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2406 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-08 08:14:58 +00:00
Fabio M. Di Nitto
3ffb151aa7
Fix missing symbol error when loading plugins without executive
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2405 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-07 10:41:42 +00:00
Angus Salkeld
e1ceabc6ef
Remove a double unlock in logsys.
...
In logsys there are a number of XYZ_unlocked() functions that are called
like this:
pthread_mutex_lock (&logsys_config_mutex);
XYZ_unlocked();
pthread_mutex_unlock (&logsys_config_mutex);
The XYZ_unlocked() functions should not do any (un)locking.
But _logsys_config_subsys_get_unlocked() unlocks if it finds the subsys.
This means that there is 1 lock and 2 unlocks.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2404 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-07 08:33:23 +00:00
Christine Caulfield
898790d501
Return CS_ERR_NOT_EXIST if a client tries to contact a plugin that isn't loaded.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2403 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-07 07:28:25 +00:00
Fabio M. Di Nitto
8dad75ef05
Fix corosync-tools linking
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2402 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-09-07 07:24:15 +00:00