Commit Graph

402 Commits

Author SHA1 Message Date
Miyotaka Sakai
a726f69fb0 For Protection Group Tracking Bug
(Logical change 1.114)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@402 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-10 15:28:00 +00:00
Steven Dake
ad9d15cf06 tlist.h:
Fix required for previous tlist.c commit.

BKrev: 41e01e1cFsurlTBuApZjiZ3l9RFdBw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@401 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-08 17:53:32 +00:00
Steven Dake
58a8fa85fb Fix required for previous tlist.c commit.
(Logical change 1.113)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@400 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-08 17:53:32 +00:00
Steven Dake
171b050909 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2005/01/08 02:16:10-07:00 mvista.com!sdake
tlist.c:
  Fix use of memory area after free when timer_fn deletes a timer.
  The 3 cases are:
  1. timer_fn deletes its own timer
  2. timer_fn deletes next timer after its own timer
  3. timer_fn deletes any other timer

BKrev: 41dfa4faNWgA_s0fcyzlj-jhOFNKAA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@399 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-08 09:16:42 +00:00
Steven Dake
2065cc1706 Fix use of memory area after free when timer_fn deletes a timer.
The 3 cases are:
1. timer_fn deletes its own timer
2. timer_fn deletes next timer after its own timer
3. timer_fn deletes any other timer

(Logical change 1.112)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@398 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-08 09:16:42 +00:00
Steven Dake
3a22aa404d evs.c, clm.c, amf.c:
Fix missing unlock in error conditions reported by Kristen Smith

BKrev: 41deef37lfq4PXPbgolOpenG8xUJYg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@397 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-07 20:21:11 +00:00
Steven Dake
6dbbb54af1 Fix missing unlock in error conditions reported by Kristen Smith
(Logical change 1.111)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@396 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-07 20:21:11 +00:00
Kristen Smith
dd5023d47e Add missing mutex unlocks in evt dispatch function.
BKrev: 41dec6bdm_JzS8aFCPMDziJhBZprSw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@395 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-07 17:28:29 +00:00
Kristen Smith
fa9850561e I was running into a problem where the evt api appeared to be getting into a
deadlock situtation. The problem would occur when I would kill aisexec
while my program was running (using EVT and CLM apis). My program is
multi-threaded where 1 thread is calling evtDispatch and other threads
can be calling evtPublish at various times. The problem I ran into is when I
killed aisexec, the evtDispatch would take a lock, but never give it back.
At the same time, my sending thread would call evtPublish which would take
the lock and hang since evtDispatch never gave up the lock it took.

The fix was to add a few unlocks in evt.c where they appeared to be missing.
Here is the info:

1) line 504 in evt.c (lib dir) calls

pthread_mutex_unlock(&evti->ei_mutex);
goto error_unlock;

2) There are subsequent calls to goto error_unlock in later error statements
that do not unlock the mutex before the goto call - the lines are 534 and 541

Adding the unlock right before the goto @ 534 and @ 541 fixes the deadlock
for my scenario.

Kristen Smith
Nortel Networks

(Logical change 1.110)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@394 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-07 17:28:29 +00:00
Steven Dake
24a4d8a098 Improve code coverage by testing a few more APIs in the AMF.
(Logical change 1.109)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@393 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-29 20:10:07 +00:00
Steven Dake
89e446ccb2 testamf.c:
Improve code coverage by testing a few more APIs in the AMF.

BKrev: 41ab821fPmG01mXBZYuPJWKuOLHj5A


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@392 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-29 20:10:07 +00:00
Steven Dake
872dafd7ec code coverage work cleanup
(Logical change 1.108)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@391 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:48:25 +00:00
Steven Dake
7e14a7632e fix double ;; which causes gcc 2.95 to fail to compile
(Logical change 1.108)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@390 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:48:25 +00:00
Steven Dake
46a2584026 testparse.c:
code coverage work cleanup
evt.c:
  fix double ;; which causes gcc 2.95 to fail to compile

BKrev: 41a51dc9RLGeGsr9z5GLjSGzFovoKQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@389 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:48:25 +00:00
Steven Dake
b3737d2eb4 correct stack corruption when logging data.
(Logical change 1.107)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@388 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:28:48 +00:00
Steven Dake
454a5af4e8 remove extra printf from gmi.
(Logical change 1.107)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@387 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:28:48 +00:00
Steven Dake
4535937943 parse.c:
correct stack corruption when logging data.
gmi.c:
  remove extra printf from gmi.

BKrev: 41a51930u36bUFf2s34EDiXBXWb-1Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@386 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:28:48 +00:00
Steven Dake
6250b3fba5 Fix compile with gcc 2.95.
(Logical change 1.106)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@385 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 22:32:21 +00:00
Steven Dake
ffe379e2a8 gmi.c, amf.c:
Fix compile with gcc 2.95.

BKrev: 41a50bf5bDdOboBSLlLamrDIChW6LQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@384 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 22:32:21 +00:00
Steven Dake
bfb02df258 evs.c:
Kristen Smith reported a bug where evs would return 0.0.0.0 in the
  source address.  This patch fixes that defect 182.

BKrev: 41950c4eWm2WAOmtw1VmnIPUzCirKw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@383 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-12 19:17:34 +00:00
Steven Dake
ec2ff56744 Kristen Smith reported a bug where evs would return 0.0.0.0 in the
source address.  This patch fixes that defect 182.

(Logical change 1.105)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@382 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-12 19:17:34 +00:00
somacoma
dab379dfca Merge
2004/10/29 00:13:35+02:00 somacoma.net!dns
evt.c:
  Fix type-punning warnings with gcc-3.3 and later.

BKrev: 418eb0e5AwiqPJ0GA8LlrTmNOv1pVQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@381 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-07 23:33:57 +00:00
somacoma
5146c0c1cf Fix type-punning warnings with gcc-3.3 and later.
(Logical change 1.104)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@380 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-07 23:33:57 +00:00
Steven Dake
24577db3a1 Commit timeout wasn't stopped when entering gather state. This patch stops
the commit timeout when the gather state is entered.

(Logical change 1.103)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@379 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-06 17:42:26 +00:00
Steven Dake
0c7bf79a14 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2004/11/06 10:42:19-07:00 mvista.com!sdake
gmi.c:
  Commit timeout wasn't stopped when entering gather state.  This patch stops
  the commit timeout when the gather state is entered.

BKrev: 418d0d02UJqL-86F2zLxnkruJk2Z7Q


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@378 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-06 17:42:26 +00:00
Miyotaka Sakai
dc107809d2 Makefile:
append keygen.o to clean target
amf.c:
  match function name to coding style

BKrev: 418baa69pjW8OB2yd60kweHMtHG5Fg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@377 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-05 16:29:29 +00:00
Miyotaka Sakai
09f9e43fcf match function name to coding style
(Logical change 1.102)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@376 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-05 16:29:29 +00:00
Miyotaka Sakai
a106e2693f append keygen.o to clean target
(Logical change 1.102)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@375 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-05 16:29:29 +00:00
Miyotaka Sakai
9781fe3332 implement gmi_token_callback in amf.c
(Logical change 1.101)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@374 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-04 22:37:03 +00:00
Miyotaka Sakai
f693affb7d Makefile:
get rid of make error
amf.c:
  implement gmi_token_callback in amf.c

BKrev: 418aaf0fKs_99rjhstkG78ZR02mT9g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@373 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-04 22:37:03 +00:00
Miyotaka Sakai
58d7f91515 get rid of make error
(Logical change 1.101)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@372 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-04 22:37:03 +00:00
Miyotaka Sakai
be07031e0b fix wrong Hastat after node join
(Logical change 1.100)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@371 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-02 21:02:49 +00:00
Miyotaka Sakai
305ebfcf43 fix wrong HaStat after node join
(Logical change 1.100)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@370 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-02 21:02:49 +00:00
Steven Dake
1f54bc48d0 Merge persist.az.mvista.com:/home/sdake/openais
into persist.az.mvista.com:/export/hadev/openais/defect-174

2004/10/31 00:48:17+09:00 sakai!sakai
ais_msg.h:
  fix wrong Hastat after node join
amf.c:
  fix wrong HaStat after node join

BKrev: 4187f5f99iXw5l-V34v_kR2YTLDpgg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@369 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-02 21:02:49 +00:00
Steven Dake
d5d47a4e11 Add rlimit code to allow openais to work with linux kernel 2.6.9 or later
(Logical change 1.99)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@368 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-30 00:07:11 +00:00
Steven Dake
4b80d3cfa8 Add rlimit code to allow openais to work with linux kernel 2.6.9 or later
BKrev: 4182db2fMpOhxCxRnyhHxC5YOCUhvg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@367 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-30 00:07:11 +00:00
Steven Dake
fb68122abc 64bit safe ais types
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@366 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
c9e60d3573 Remove specific o files instead of all objects.
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@365 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
e2c260f251 Type checking changes for printf's
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@364 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
54c310f1a1 Fix off by one which oculd cause invalid handle to be used.
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@363 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
0c666cff56 Fix off by one which could cause invalid handle to be used.
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@362 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
e2305e43aa type safeness printing.
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@361 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
e90dd7e8a6 Several fixes by Daniel Stodden. Possible crash on invalid handle fixed in library
and executive.  Also parser could crash when out of memory occurs.

util.c:
  Fix off by one which oculd cause invalid handle to be used.
testevt.c, testckpt.c, subscription.c, evtbench.c:
  type safeness printing.
publish.c:
  type safeness prnting.
ais_types.h:
  64bit safe ais types
Makefile:
  Remove specific o files instead of all objects.
parse.c:
  Fix crash in parser.
hdb.c:
  Fix off by one which could cause invalid handle to be used.
gmi.c:
  remove type-punned pointer warning
ckpt.c, amf.c:
  Type checking changes for printf's

BKrev: 4180200fVk1m035hXoENX87UgLUrKg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@360 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
8eccd8a7de type safeness prnting.
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@359 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
ea09155b39 remove type-punned pointer warning
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@358 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Steven Dake
e443ea67c2 Fix crash in parser.
(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@357 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-27 22:24:15 +00:00
Mark Haverkamp
ba4ae778f7 I added some cases to test multiple channel and subscriptions as well
as some retained event tests.

(Logical change 1.97)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@356 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-22 21:16:53 +00:00
Mark Haverkamp
13110f84f5 Here some updates to the event code. The first are changes to
exec/evt.c:
1. manage the base event ID a little better.
2. I also added some private log levels to allow me to selectively turn
on debug output in some sections of the code without turning on
everything.
3. Remove (EVT) from all the printf calls.

The next is an update to the testevt program. I added some cases to test
multiple channel and subscriptions as well as some retained event tests.

BKrev: 417978c5I2I15AFzIQ0zITa5_ESuZQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@355 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-22 21:16:53 +00:00
Mark Haverkamp
882e10e411 1. manage the base event ID a little better.
2. I also added some private log levels to allow me to selectively turn
on debug output in some sections of the code without turning on
everything.
3. Remove (EVT) from all the printf calls.

(Logical change 1.97)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@354 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-22 21:16:53 +00:00
Steven Dake
3f4c9f5588 Change logging to include service and description.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@353 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00