Steven Dake
e3741ea9f3
More fixes for defect 204. From Mark Haverkamp:
...
|Looking at the totempg config change function, I think that leaving
|members should have their assembly area reset. I assume that any data
|that is there is now invalid, and we wouldn't want it hanging around if
|they return. Also, I think that the wrong index was being used to
|initialize the assembly area index.
(Logical change 1.126)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@443 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-01 20:40:07 +00:00
Steven Dake
16a9276d98
totempg.c:
...
More fixes for defect 204. From Mark Haverkamp:
|Looking at the totempg config change function, I think that leaving
|members should have their assembly area reset. I assume that any data
|that is there is now invalid, and we wouldn't want it hanging around if
|they return. Also, I think that the wrong index was being used to
|initialize the assembly area index.
clm.c:
fix defect 131 - member element not set in cluster membership service
BKrev: 41ffe9278sM8ZyWmj_3tmUK0YiqgSQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@442 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-01 20:40:07 +00:00
Steven Dake
e6a0eca16a
Fix from mark and daniel for small packet sizes in totempg resulting
...
in segfault.
(Logical change 1.125)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@441 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 22:07:48 +00:00
Steven Dake
09d20d5f1e
random drop defined to on.. turning off.
...
(Logical change 1.125)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@440 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 22:07:48 +00:00
Steven Dake
d76fe685b3
totemsrp.c:
...
random drop defined to on.. turning off.
totempg.c:
Fix from mark and daniel for small packet sizes in totempg resulting
in segfault.
BKrev: 41feac34ILMg8MsBZNAXgHefIA22zw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@439 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 22:07:48 +00:00
Steven Dake
b54a5993c8
totempg.c:
...
Fixes defect 204 : messages not delivered correctly
Patch from Mark Haverkamp.
BKrev: 41fe8cbaM4eR7_3dP91qFSahtT23dA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@438 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 19:53:30 +00:00
Steven Dake
ce60bbfc27
Fixes defect 204 : messages not delivered correctly
...
Patch from Mark Haverkamp.
(Logical change 1.124)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@437 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 19:53:30 +00:00
Steven Dake
0f959ea931
Fix bug in implementation that deviates from specification.
...
(Logical change 1.123)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@436 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 19:52:36 +00:00
Steven Dake
57c00ed45d
totemsrp.c:
...
Fix bug in implementation that deviates from specification.
BKrev: 41fe8c84mIHGgf3brH_kZTiOR_ACvQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@435 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-31 19:52:36 +00:00
Steven Dake
b6306c29d5
bug 214
...
Fix pthread mutex not unlocked in error path
(Logical change 1.122)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@434 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-29 18:30:56 +00:00
Steven Dake
aa419f82af
remove priority fields from evs service.
...
..
(Logical change 1.122)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@433 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-29 18:30:56 +00:00
Steven Dake
5a3d94cb88
remove priority fields from evs service.
...
(Logical change 1.122)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@432 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-29 18:30:56 +00:00
Steven Dake
c6e8f17088
evs_mcast_joined.3:
...
remove priority fields from evs service.
..
evs_mcast_groups.3, evs.h, ais_msg.h:
remove priority fields from evs service.
util.c:
bug 214
Fix pthread mutex not unlocked in error path
BKrev: 41fbd660W-BROulgsZt4S6LYD_pcvw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@431 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-29 18:30:56 +00:00
Steven Dake
231933c9fc
testevs.c, evsbench.c:
...
Remove priorities from interfaces.
evs.c:
Remove priorities from evs interfaces.
totempg.h, totempg.c, main.c, handlers.h, evt.c, evs.c, clm.c, ckpt.c, amf.c:
Remove priorities from all interfaces.
BKrev: 41f943030jN3Y5g5v10371Hgb2007A
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@430 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-27 19:37:39 +00:00
Steven Dake
b8c3d711b4
Remove priorities from evs interfaces.
...
(Logical change 1.121)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@429 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-27 19:37:39 +00:00
Steven Dake
77d226f1f3
Remove priorities from interfaces.
...
(Logical change 1.121)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@428 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-27 19:37:39 +00:00
Steven Dake
5ab2ec0d67
Remove priorities from all interfaces.
...
(Logical change 1.121)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@427 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-27 19:37:39 +00:00
Steven Dake
065f5d34a8
Fix defect 203 commit token asserts
...
(Logical change 1.120)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@426 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-24 19:44:07 +00:00
Steven Dake
c2fa6bcd5b
totemsrp.c:
...
Fix defect 203 commit token asserts
BKrev: 41f55007suViMhWrhOICprHxyacUwg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@425 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-24 19:44:07 +00:00
Mark Haverkamp
6b862f2d26
Small fixes.
...
evt: fix member count until recovery code is done.
totempg: remove dbug print.
BKrev: 41f546cd0Fq27HJzalqHeE69x99WKg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@424 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-24 19:04:45 +00:00
Mark Haverkamp
8ff1c73543
Temp config change code
...
(Logical change 1.119)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@423 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-24 19:04:45 +00:00
Mark Haverkamp
7c77f613eb
remove debug print
...
(Logical change 1.119)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@422 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-24 19:04:45 +00:00
Steven Dake
6d4bd5b8ff
Remove random dropping of packets in released version.
...
(Logical change 1.118)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@421 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 21:28:45 +00:00
Steven Dake
5f461d09e2
totemsrp.c:
...
Remove random dropping of packets in released version.
BKrev: 41f2c58dbLMQ6YcKCJxEwIKRUk7lxw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@420 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 21:28:45 +00:00
Steven Dake
f542b57511
update to new totem code
...
(Logical change 1.117)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@419 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
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