Steven Dake
69928e301a
Add notification when totem has completed initialization.
...
This triggers the initialization of the service engines which may need totem
for initialization.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2372 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-27 02:00:05 +00:00
Steven Dake
f9f663f459
Add a target token set completed callback in totemrrp and below layers.
...
Handle management of callback in totemsrp.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2371 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-27 00:29:32 +00:00
Jan Friesse
a1db33fc99
Handle NULL ver string in service
...
In case user not enter ver: in service section, whole
corosync falled with segfaul, because atoi was called
on NULL.
Now, in case of NULL, we rather not use atoi, and
return 0 directly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2370 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-23 14:50:56 +00:00
Steven Dake
5eae4c135c
Optimization of totemsrp and below by removing hdb usage. cpgbench shows
...
results of 4% to 20% increase in tps and mbs depending on hardware.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2369 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-22 22:10:35 +00:00
Jan Friesse
996850db39
Support for service.d
...
This patch is very similar to uidgid.d patch, but support for loading
services (so read service section).
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2368 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-22 08:25:45 +00:00
Steven Dake
5225b3809c
Initial infrastructure changes to support iba. Split totemnet into
...
totemiba and totemudp and have totemnet call the appropriate transport
calls.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2367 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-21 18:17:15 +00:00
Steven Dake
279e297842
Darwin is missing the sched_setscheduler system call.
...
Patch detects it and resolves the build failure.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2366 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-21 01:31:39 +00:00
Jan Friesse
c597079a3e
Cpg synchronization patch for conf change messages
...
The root of the theoretical problem is that cpg_join or cpg_leave
messages are being sent via the C apis between synchronization. With
the current cpg, synchronization happens in confchg_fn, and then later
in cpg_sync_process. cpg_sync_process is called much later after
confchg_fn and introduces a small probability of a window of time for
queued in totem (but not yet ordered by totem) for those cpg_join and
cpg_leave operations to interact with the synchronization process which
should happen in one atomic operation but currently is two distinct
operations.
This patch deletes confchg_fn and make sends joinlist/downlist
in cpg_sync_process.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2365 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-20 14:57:06 +00:00
Jan Friesse
33c0b60b58
Allow only one connection per (node, pid, grp)
...
This patch allows only one connection per (node, pid, grp_name) tuple.
This means, you cannot make more connection from one process to same
group_name. This is (I hope) how cpg should behave. In case, you will
try to do that, CPG_ERR_EXISTS error is returned.
Of course, there is no problem with creating:
- more connection with same (pid, grp) if nodeid is different
- more connection with same (node, grp) if pid is different (for example
after fork, or two distinct processes)
- more connection with same (node, pid) if grp is different (connect
one process to more cpgs).
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2364 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-20 14:53:18 +00:00
Jan Friesse
49136748b0
Add lcoroipcc as build requirement for stress_cpgcontext
...
This is needed for build without errors on system, where
lcoroipcc is not installed on system yet.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2363 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-16 12:16:06 +00:00
Andrew Beekhof
21407aa76b
Use the preferred prefix for the Pacemaker service
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2362 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-14 12:34:18 +00:00
Steven Dake
251d2cf5a6
Add NAME entries to manpages.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2360 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-13 16:46:13 +00:00
Steven Dake
55ac5ee8e9
add stress_cpgcontext.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2359 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-10 12:54:56 +00:00
Steven Dake
cdea22993f
Add stress_cpgfdget test case.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2358 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-10 12:29:50 +00:00
Steven Dake
c9de702374
Add stress test case for cpg and coroipcc zero copy buffer alloc and free
...
operations.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2357 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-10 12:05:48 +00:00
Steven Dake
90c013d787
Fix segfault when using zcb api of coroipcc under certain loads.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2356 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-10 11:49:51 +00:00
Fabio M. Di Nitto
021ef592b2
Bump version in trunk
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2355 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-10 04:55:34 +00:00
Steven Dake
c6efbddcf9
Add poll destroy to coroipcs.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2348 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-08 05:23:33 +00:00
Steven Dake
a7099c409b
Add more tested platforms to list.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2347 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-08 05:14:47 +00:00
Steven Dake
2fd4d6f369
Updated INSTALL file.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2346 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-08 05:06:51 +00:00
Jrme Flesch
483fe491f9
BSD support: Fix EOF handling in coroipcs.c:req_setup_recv() and coroipcs:coroipcs_handler_dispatch()
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2345 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-02 07:47:04 +00:00
Steven Dake
2a31caedd3
Add ring id field to evs.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2341 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:57:37 +00:00
Steven Dake
176d80eafe
Set version field in totem header in case it isn't set by default.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2340 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:29:55 +00:00
Steven Dake
453ef211c1
Pass handle is evs callback functions.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2339 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:21:48 +00:00
Steven Dake
c12253097f
Send ERR_SECURITY when invalid security context is provided via ipc clients.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2338 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:04:20 +00:00
Steven Dake
23ce53be4d
Set ERR_SECURITY to 100 to give plenty of room for other people's error codes.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2337 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 20:03:07 +00:00
Steven Dake
7954f19ac3
Fix build on bsd systems.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2336 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:55:18 +00:00
Steven Dake
c5bccf1a7a
Align syncv2 on 8 byte boundaries.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2335 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:48:14 +00:00
Steven Dake
9a2b66df63
Make compatibility mode none work properly.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2334 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:37:59 +00:00
Steven Dake
3e0ab804cb
Code cleanup for evs service from Wojtek.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2333 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 19:19:06 +00:00
Jan Friesse
d6cbfe2590
Don't deliver cpg messages from unknown nodes
...
This patch fixes situation, when in the middle of
sync some node will send regular message before
another node will receive confch message, and regular
message is delivered to application. From application
point of view, this node is unknown -> don't expect
any messages.
Now, no such messages are delivered to application.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2332 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 13:36:00 +00:00
Steven Dake
c7e99938b2
Add context get set man pages for evs.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2331 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:33:22 +00:00
Steven Dake
629f7ff91b
Add new man pages to Makfile.am
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2330 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:32:49 +00:00
Steven Dake
130d9c9908
Add context get and set operations to evs handles and man pages.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2329 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:27:00 +00:00
Steven Dake
4bc5069bc4
Add context get/set to See Also section of cpg man pages.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2328 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:24:19 +00:00
Steven Dake
1dd29d722a
Add see also reference to context get/set operation.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2327 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:20:23 +00:00
Steven Dake
a9814fa0c2
Add votequorum_context_get/set man pages.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2325 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:18:56 +00:00
Steven Dake
35101dd8fa
Add man pages for confdb_context_get/set operations.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2324 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-07-01 06:18:25 +00:00
Jim Meyering
4f1aabe431
remove unnecessary #include
...
* exec/evil.c: Don't include <signal.h>.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2323 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-30 09:27:27 +00:00
Jim Meyering
6aad39be63
remove trailing blanks
...
* corosync.spec.in:
* exec/evil.c:
* exec/main.c:
* exec/mainconfig.c:
* exec/syncv2.c:
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2322 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-30 09:27:20 +00:00
Fabio M. Di Nitto
ed9beee011
Reset version to 0.99 in configure.ac to unbreak rpm/srpm.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2321 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-30 07:05:50 +00:00
Steven Dake
f4f2c01a17
Reset 0.98 in configure.ac to trunk so toplevel makefile works properly
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2319 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-29 23:32:17 +00:00
Steven Dake
15d2c48963
Export poll handle via coroapi.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2318 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-29 23:24:24 +00:00
Steven Dake
9833ecb5a7
Fix segfault during dispatch within confdb library.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2317 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-29 23:16:32 +00:00
Steven Dake
2b31a4d94b
Static-ize some main.c variables.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2316 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 06:03:06 +00:00
Steven Dake
fc2de3db2a
Simplify notifications from totem at the notice level.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2315 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 05:26:25 +00:00
Steven Dake
56dbf70bb1
Remove hard coded sync values and use defines from coroapi.h.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2314 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 05:21:14 +00:00
Steven Dake
23aea08ae4
Slay the debug messages coming out at notice level in totem.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2313 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 05:12:27 +00:00
Steven Dake
47c6bc3aaf
Remove totemsrp warning.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2312 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 04:57:31 +00:00
Steven Dake
18a19bac27
Allow syncv2 to determine membership list when run in compatibility mode.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2311 fd59a12c-fef9-0310-b244-a6a79926bd2f
2009-06-28 04:51:38 +00:00