Commit Graph

305 Commits

Author SHA1 Message Date
Mark Haverkamp
2d0b3519c7 testparse.c needs util.o now.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@305 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
c572772487 (Logical change 1.84)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@304 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
f2671ba36b Remove some old TODO comments.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@303 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
b88cb68ddf Added util.[ch] for time and SaNameT match functions. Also updated
dependencies.

(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@302 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
c4252460d2 Updates for evt to handle recovery after a config change.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@301 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
0d3aafd32f added a semi-quiet mode.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@300 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
070a8295c1 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@299 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:13 +00:00
Steven Dake
6256363476 Add token callback for recovery routines.
(Logical change 1.83)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@298 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Steven Dake
fe9118557c Add token callback for recovery.
gmi.h:
  Add token callback functions to header.
gmi.c:
  Add token callback for recovery routines.

BKrev: 4159aa0ejs1nwJhT7hT1XL-gr9wv2Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@297 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Steven Dake
24a32a21a4 Add token callback functions to header.
(Logical change 1.83)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@296 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:14:38 +00:00
Mark Haverkamp
0f50a877d5 Check to see that the message can be sent before proceeding.
(Logical change 1.82)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@295 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Mark Haverkamp
b9950ca373 add assert around clmNodeJoinSend since the call to
gmi_mcast can return a failure now.

(Logical change 1.82)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@294 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Mark Haverkamp
2392be8d57 add assert around gmi_mcast calls since it can return a failure now.
BKrev: 4154791ch3ag3FHVGxaUfrVFsvN3sQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@293 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Mark Haverkamp
46d6f3ff47 add assert around gmi_mcast since it can return a failure now.
(Logical change 1.82)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@292 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-24 19:44:28 +00:00
Steven Dake
7e7cc83fc8 testparse.c:
Fix commit error in changeset 1.77.

BKrev: 41534ab0cY4dYHQw-qoPHLMpXQTAAQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@291 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:14:08 +00:00
Steven Dake
bb2a6782cb Fix commit error in changeset 1.77.
(Logical change 1.81)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@290 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:14:08 +00:00
Steven Dake
00b8d9a1cf Allow getSaNameT to be compiled in for application reporting.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@289 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
91bf4a4afd Add sectione xpiration and get checkpoint durations working properly.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@288 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
9c6bf02fcf Clean up duration and expiration functions.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@287 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
d73d78e8fa Finalize expiration of sections and checkpoints.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@286 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
f2fca925bc Test expiration timer.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@285 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
f0d161bbe0 Fix build error with -DDEBUG set.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@284 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
f7a0b8095f Add final support for duration timers on checkpoints and expiration timers.
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
2004-09-23 22:12:13 +00:00
Steven Dake
e94dd27cff Reduce number of threads so runs with valgrind operate faster.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@282 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
Steven Dake
1fde8a96da Add section expiration and get checkpoint durations working properly.
(Logical change 1.80)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@281 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-23 22:12:13 +00:00
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