This cleans up memory leaks that could occur because checkpoints are expected to
cleanup with the expiration and duration timers.
testckpt.c:
Test expiration timer.
ckptbenchth.c:
Reduce number of threads so runs with valgrind operate faster.
ckpt.c:
Clean up duration and expiration functions.
ais_types.h:
Add sectione xpiration and get checkpoint durations working properly.
ais_msg.h:
Add section expiration and get checkpoint durations working properly.
ckpt.h, ckpt.c:
Finalize expiration of sections and checkpoints.
print.c:
Allow getSaNameT to be compiled in for application reporting.
evs.c:
Fix build error with -DDEBUG set.
BKrev: 41534a3dcm_0gpB32jNbsek3bGYwXQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@283 fd59a12c-fef9-0310-b244-a6a79926bd2f
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