Commit Graph

280 Commits

Author SHA1 Message Date
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
1a986df850 tlist.h:
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
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
6ee24ca4df Fix annoying build failure because of code coverage increases.
(Logical change 1.78)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@276 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-22 19:57:18 +00:00
Steven Dake
f95a7adeb0 testparse.c:
Fix annoying build failure because of code coverage increases.

BKrev: 4151d91edCQRlmhK78LajPaUV35NyQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@275 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-22 19:57:18 +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
69afa631d8 Add duration timer support.
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
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
2ea6537fee gmi.c:
Get rid of valgrind warning and possible segfault.

BKrev: 414f7c5cf4HwWODMiTAI2PCkLX1fnw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@270 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
45cd196295 handlers.h, gmi.h:
Missed merge of these two files from last changeset.

BKrev: 414f573d4f7iW8ZMEKLNAImK24Vn3g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@268 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
837c3da791 Add recovery plug support to openais. This allows messages that are recovery
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
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
c22ca0ba7a Remove two build errors with extra object file included that is not needed.
(Logical change 1.74)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@260 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
15013d10b4 gmi.c:
Bug 44.
  Fixes assertion in executive when running ckptbenchth.

BKrev: 4148dc42NSqyi9F4s6exhsVarsF10Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@258 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-16 00:20:18 +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
b1da3b1e1e main.c:
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
2004-09-15 20:54:42 +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
f189e9a34c print.c:
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
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
05e0d04af5 tlist.c:
Increased code coverage of tlist.c from 74.5% to 95.9%.

BKrev: 4148a64akC3-Hr8RMOSHHChVWBYM5Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@251 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
cb69089b5a crypto.h:
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
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
11140a0d5c gmi.c:
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
2004-09-10 01:04:29 +00:00
Steven Dake
b704b54ffb Merge sdake@bk.osdl.org:/var/bk/openais
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
2004-09-08 08:11:56 +00:00
Steven Dake
3241af44d0 Add signal handler so code coverage records coverage
(Logical change 1.67)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@244 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-08 08:11:56 +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
f4560a1424 gmi.c:
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-08 03:25:56 +00:00
Steven Dake
f8f275973d EVS library makes compiler warning on some compilers. Found and fixed by
Sakai Miyotaka.

(Logical change 1.65)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@240 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Mark Haverkamp
1b7f4fb4a4 Merge
2004/09/04 16:52:55-07:00 broked.org!sdake
Makefile missing clean target for evs bench.  Found and fixed by Sakai Miyotaka.

(Logical change 1.65)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@239 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Steven Dake
e9fc92be20 (Logical change 1.65)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@238 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:12 +00:00
Mark Haverkamp
1aeec797c7 Merge
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
2004-09-07 15:18:12 +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
Steven Dake
4aa0f75c94 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@235 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:18:11 +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
352a5b4de4 Add return value to main.
(Logical change 1.64)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@233 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
2d04633022 Some code cleanup.
BKrev: 413dd073MFU2gjJ72eQd8SOvDfpBwQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@232 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
7f324361a7 Development, updates, and bug fixes to event service lib.
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@231 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00