Steven Dake
7492a942fe
Store handle address in timer structure. When timer expires, wipe
...
out the handle address's value, since the timer is no longer valid.
This allows double frees, or frees on handles that haven't been
added.
One note of caution: a handle cannot be moved into another variable
and be expected to work properly for double frees.
(Logical change 1.79)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@280 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 01:27:22 +00:00
Steven Dake
5ea980e5d0
Change define for timer handle.
...
(Logical change 1.79)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@279 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 01:27:22 +00:00
Steven Dake
c8fa82b571
Change interface to allow storing of handle address in timer structure.
...
(Logical change 1.79)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@277 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 01:27:22 +00:00
Steven Dake
4d7e780487
Add retainined events while also cleaning up memory leakage that occurs
...
because of a lack of retained events.
(Logical change 1.77)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@274 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-21 01:00:16 +00:00
Steven Dake
2644c4dd44
Add retained events timer to checkpoint structure.
...
(Logical change 1.77)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@272 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-21 01:00:16 +00:00
Steven Dake
18f5836ae2
Get rid of valgrind warning and possible segfault.
...
(Logical change 1.76)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@271 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-21 00:57:00 +00:00
Steven Dake
cee884d279
Missed merge of these two files from last changeset.
...
(Logical change 1.75)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@269 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-20 22:18:37 +00:00
Steven Dake
8c9e41b695
Add recovery plug support to evs.
...
l
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@267 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
397b4ce25a
Add recovery plug support to amf.
...
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@266 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
a743bfce9b
Add recovery plug support to clm.
...
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@264 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
7239bf25ad
Add recovery plug support to group messaging.
...
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@263 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
67d57f3da9
Add recovery plug support to evt.
...
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@262 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
4c7f94b70b
Add recovery plug support.
...
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@261 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
818072aa9c
Add recovery plug support to ckpt.
...
(Logical change 1.74)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@259 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Steven Dake
2f9b479200
Bug 44.
...
Fixes assertion in executive when running ckptbenchth.
(Logical change 1.73)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@257 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-16 00:20:18 +00:00
Steven Dake
00a710c4e2
Call poll_destroy when executing ais_done. This increases code
...
coverage from 66.9% to 82.3%.
(Logical change 1.72)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@255 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-15 20:54:42 +00:00
Steven Dake
bda91bf27f
Increase code coverage from 19.4% to 100% by adding defines
...
to remove debug print code in production builds. Also removed
function by ifdef that is never used in the project.
(Logical change 1.71)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@254 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-15 20:37:39 +00:00
Steven Dake
75ddec4b0f
Increased code coverage of tlist.c from 74.5% to 95.9%.
...
(Logical change 1.70)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@252 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-15 20:30:02 +00:00
Steven Dake
20d27992a9
Remove unused code.
...
(Logical change 1.69)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@250 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-15 20:20:07 +00:00
Steven Dake
2f97d91083
Remove unused code and change some error detection to assertions.
...
This increases code covergae from 80.2% to 92.7% with no change
in functionality.
(Logical change 1.69)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@248 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-15 20:20:07 +00:00
Steven Dake
75268b5e32
BUG 37. Fix several leaks during configuration changes. Also fixes
...
a possible assert with many large messages being sent from multiple
processors at the same time.
(Logical change 1.68)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@247 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-10 01:04:29 +00:00
Steven Dake
0097a3d7d1
Add code coverage build options and make clean target
...
(Logical change 1.67)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@243 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-08 08:11:56 +00:00
Steven Dake
246687d689
Get rid of magic number 1500 and replace with PACKET_SIZE_MAX.
...
Also fix a glaring memory overwrite bug in gmi_init which would
init 256k of memory instead of PACKET_SIZE_MAX memory.
(Logical change 1.66)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@242 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-08 03:25:56 +00:00
Steven Dake
cc9f12bbd0
State change from standby-active to outofservice could
...
result in invalid number of active units. Found and fixed by
Sakai Miyotaka.
(Logical change 1.65)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@236 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Mark Haverkamp
c38ad9061f
Clean up some comments code. (comments, old macro).
...
(Logical change 1.64)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@234 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
e0a5ab3fed
Added special SA_CLM_LOCAL_NODE_ID case to receive your own
...
cluster node data.
(Logical change 1.63)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@230 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Mark Haverkamp
acba87e179
Completed most of the event service functionality.
...
(Logical change 1.63)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@223 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Steven Dake
f6b2a745a3
Added the EVS service and changed the library queue
...
to 256 entries.
(Logical change 1.62)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@220 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
3ce7b69581
Added the evs target.
...
(Logical change 1.62)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@217 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
50a4099c23
major rewrite of the IPC code for sending messages
...
to the library. What was there previously was very
broken.
(Logical change 1.62)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@214 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
099ebf3273
(Logical change 1.62)
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@212 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
07dd45a275
Fix bug where transition from multiple members to
...
single members would cause messages not to be sent.
Also fixed an assertion in transition from multiple
processors to one processor.
(Logical change 1.62)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@211 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:44 +00:00
Steven Dake
b46d9a2ddf
Initial revision
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@210 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-31 08:21:43 +00:00
Steven Dake
287a5c5359
Flush all multicast messages by delivering them before
...
processing the token. This ensures that the mcast fd
doesn't buffer too many old messages and avoids an assert.
(Logical change 1.61)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@208 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-28 00:37:34 +00:00
Steven Dake
aeb30a0848
Add initial support for multipathing to group messaging.
...
(Logical change 1.60)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@207 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
b09ed9faf0
Change gmi interface to support multipathing.
...
(Logical change 1.60)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@206 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
32005b93cd
Change network configuration parser interface to support
...
multipathing.
(Logical change 1.60)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@205 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
d4fef2d5b2
Change network configuration parser to read multiple interfaces.
...
(Logical change 1.60)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@203 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-24 01:21:33 +00:00
Steven Dake
e325206977
Clean up usage of ais_done. This includes passing a
...
value for each done type. Also, libais_disconnect cleaned up
so it doesn't ais_done when its queues are full. Instead it
disconnects the library connection. A new connection state
variable added to the conn_info structure in place of active.
(Logical change 1.58)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@200 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
c4523cbe19
Changed number of queueable messages to the library from 8192
...
to 128 messages.
(Logical change 1.58)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@199 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
f6c49d8d06
Use new connection enumeration with AMF code.
...
(Logical change 1.58)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@198 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-23 05:24:21 +00:00
Steven Dake
f2407f15c6
Cleanup errors in Makefile.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@191 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
f6e476463b
Change interface so there is a new libais_handler structure.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@190 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
5e55537d8f
Add support for flow control to amf library.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@189 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
2a263fdd00
Add support to group messaging to get flow control information.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@188 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
1066805247
Flow control changes.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@186 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
e5fe15c3e6
Add support to group messaging for another priority level.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@183 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
11b4f97488
Add support to eventing for flow control.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@180 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
69fd2d8dcd
Add support to disconnect and dispatch to utilize flow control.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@179 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Steven Dake
52a1621c74
Add support for flow control to ckpt library.
...
(Logical change 1.55)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@177 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00