Steven Dake
0458d9c734
enable some testing code.
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@418 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
e883314a18
Add test.cpp to makefile
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@417 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
154abaa2b8
Delete: exec/gmi.c
...
}(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@416 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
a11c169f60
new benchmark runs for 10 seconds.
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@415 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
39409fcb01
update to new crypto code
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@414 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
ccefb26ff7
update to new crypto code.
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@413 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
940a8d7292
(Logical change 1.117)
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@412 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
91fed1c4ac
Makefile:
...
Add test.cpp to makefile
testckpt.c:
enable some testing code.
evsbench.c, ckptbench.c:
new benchmark runs for 10 seconds.
test.cpp, rmd.h, totemsrp.h, totemsrp.c, totempg.h, totempg.c, swab.h:
new file
sq.h, Makefile, evt.c, evs.c, clm.c, amf.c, crypto.c, ckpt.c, aispoll.c:
update to new totem code.
queue.h, ais_msg.h:
update to new totem code
parse.h, parse.c, Makefile, main.h:
update to new crypto code
main.c, handlers.h:
update to new crypto code.
.del-gmi.h~7d81bcdb10af22b3:
Delete: exec/gmi.h
.del-gmi.c~df0f77a7b91ff206:
Delete: exec/gmi.c
BKrev: 41f2bdd3a_mEhs2wkBZHsD4_aft9vA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@411 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
a4bf2f872d
update to new totem code.
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@410 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
bcb248163b
Delete: exec/gmi.h
...
}(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@409 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Steven Dake
31f5ab43ef
Initial revision
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@408 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:46 +00:00
Mark Haverkamp
0e5a4407bc
add in missing mutex unlock
...
BKrev: 41e405deOyfzWPCaxv7_aIpgxL5C5g
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@407 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-11 16:59:10 +00:00
Mark Haverkamp
37c27a4f35
add in missing mutex unlock
...
(Logical change 1.116)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@406 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-11 16:59:10 +00:00
Mark Haverkamp
019b1af111
Need to specify create because the channel probably doesn't exist anymore.
...
BKrev: 41e40050NKYAEN3N5kB1-R-klUXqUQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@405 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-11 16:35:28 +00:00
Mark Haverkamp
2fefbeaeb4
Need to specify create because the channel probably doesn't exist anymore.
...
(Logical change 1.115)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@404 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-11 16:35:28 +00:00
Miyotaka Sakai
7277617c38
amf.c:
...
For Protection Group Tracking Bug
BKrev: 41e29f00Yz2GqTwTyBhpW_zo6WjI1Q
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@403 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-10 15:28:00 +00:00
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