Commit Graph

585 Commits

Author SHA1 Message Date
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
Steven Dake
dcc8ea3119 Change loggint o include service and description.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@352 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
0d90b61b8d Add log print service.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@351 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
58a1955fbd Delete: exec/log/print.c
}(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@350 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
0e0e2f2c9e Add log service level.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@349 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
628613d066 Big update for better logging to file, syslog, or stderr.
print.h:
  Change loggint o include service and description.
print.c:
  Change logging to include service and description.
parse.h, parse.c:
  Change parser to read new configuration file format.
main.c:
  Some changes for log services.
gmi.c, evt.c, evs.c, clm.c, ckpt.c:
  Add log service level.
amf.c:
  Add log print service.
openais.conf:
  new file
.del-network.conf~b38a0f011c4341a7:
  Delete: conf/network.conf
QUICKSTART:
  Updates that explains new configuration file options.
.del-print.h~e83281cecec7f02d:
  Delete: exec/log/print.h
.del-print.c~53000a4a22b4cd:
  Delete: exec/log/print.c

BKrev: 41740e46Y1NJgmUMM6WceFwxBVXOVg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@348 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
06e1dfbb4b (Logical change 1.96)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@347 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
2c63573df3 Updates that explains new configuration file options.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@346 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
e794e35ae5 Change parser to read new configuration file format.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@345 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
8b52d24757 Delete: conf/network.conf
}(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@344 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
f7036e88ac Delete: exec/log/print.h
}(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@343 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
d7b4430e70 Some changes for log services.
(Logical change 1.96)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@342 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:10 +00:00
Steven Dake
4ef0eb9845 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@341 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-18 18:41:09 +00:00
Mark Haverkamp
61926b9c64 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_event

2004/10/15 07:34:46-07:00 osdl.net!markh
Fix some problems in the open channel recovery code that could cause
remaining nodes to have an incorrect count when a node left the
membership.

BKrev: 416fe0393RmyVFqRVwmPFENov-OyGw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@340 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 14:35:37 +00:00
Mark Haverkamp
486ecf2099 Fix some problems in the open channel recovery code that could cause
remaining nodes to have an incorrect count when a node left the
membership.

(Logical change 1.95)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@339 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 14:35:37 +00:00
Steven Dake
40e0554c19 Make testevs exit on evs_initialize if the return code is not EVS_OK.
(Logical change 1.94)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@338 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 00:37:47 +00:00
Steven Dake
871f862c8b Add handle instance destructor code. Previously it was set to
null and was being called which caused a null jump.

(Logical change 1.94)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@337 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 00:37:47 +00:00
Steven Dake
341998c18b testevs.c:
Make testevs exit on evs_initialize if the return code is not EVS_OK.
evs.c:
  Add handle instance destructor code.  Previously it was set to
  null and was being called which caused a null jump.

BKrev: 416f1bdbIKOv0YEK2JzYcGImsLWrsA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@336 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-15 00:37:47 +00:00