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
Change interface to allow storing of handle address in timer structure.
aispoll.h, aispoll.c:
Change define for timer handle.
tlist.c:
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.
BKrev: 4152267afe09VjiyO_78GrWKiND_oQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@278 fd59a12c-fef9-0310-b244-a6a79926bd2f
ckpt.h:
Add retained checkpoints timer to checkpoint structure.
ckpt.c:
Add retained checkpoints while also cleaning up memory leakage that occurs
because of a lack of retained events.
BKrev: 414f7d20vmWMyWW9eWJST5Ew5sw_yw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@273 fd59a12c-fef9-0310-b244-a6a79926bd2f
messages to be blocked until recovery completes. All low/medium/high messages
cannot be transmitted until all processors have unplugged themselves. If a
configuration change occurs, the plugs are invalidated and the recovery starts
again.
Makefile:
Remove two build errors with extra object file included that is not needed.
main.c:
Add recovery plug support.
gmi.c:
Add recovery plug support to group messaging.
evt.c:
Add recovery plug support to evt.
evs.c:
Add recovery plug support to evs.
l
clm.c:
Add recovery plug support to clm.
ckpt.c:
Add recovery plug support to ckpt.
amf.c:
Add recovery plug support to amf.
BKrev: 414bddd7HCsNs1rz-sJV92mB6fupCw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@265 fd59a12c-fef9-0310-b244-a6a79926bd2f
Call poll_destroy when executing ais_done. This increases code
coverage from 66.9% to 82.3%.
BKrev: 4148ac12oFAraidHBF8lhdpMgBXc1w
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@256 fd59a12c-fef9-0310-b244-a6a79926bd2f
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
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.
BKrev: 4148a813APgP44Mw4XR-P--e0qYzTw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@253 fd59a12c-fef9-0310-b244-a6a79926bd2f
Remove unused code.
crypto.c:
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.
BKrev: 4148a3f73A3zw2reb3HkDh6RWIrcag
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@249 fd59a12c-fef9-0310-b244-a6a79926bd2f
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
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
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.
BKrev: 4140fd9dwjk3xOLpFw3Ivhp0_f_oYw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@246 fd59a12c-fef9-0310-b244-a6a79926bd2f
into persist.az.mvista.com:/home/sdake/openais
2004/09/08 01:11:43-07:00 mvista.com!sdake
Code coverage support in build environment and test programs.
Many files:
Add signal handler so code coverage records coverage
Makefile:
Add code coverage build options and make clean target
BKrev: 413ebecc_2LPT2fuaQZhw9BymLz6bQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@245 fd59a12c-fef9-0310-b244-a6a79926bd2f
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
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.
BKrev: 413e7bc48wgkqG1E4wSbG9KQkBJMkg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@241 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004/09/06 13:30:28-07:00 broked.org!sdake
Added man pages and html generation for the EVS interface.
2004/09/04 16:54:20-07:00 broked.org!sdake
One serious bug in AMF and a few minor nits fixed from patch
from Sakai Miyotaka.
Makefile:
Makefile missing clean target for evs bench. Found and fixed by Sakai Miyotaka.
evs.c:
EVS library makes compiler warning on some compilers. Found and fixed by
Sakai Miyotaka.
amf.c:
State change from standby-active to outofservice could
result in invalid number of active units. Found and fixed by
Sakai Miyotaka.
BKrev: 413dd134zK97xpVttMuRVm6GdcbQlg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@237 fd59a12c-fef9-0310-b244-a6a79926bd2f