Commit Graph

565 Commits

Author SHA1 Message Date
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
Mark Haverkamp
f370d6961e Fix some compiler warnings with gcc 3.4
(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@335 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
a4a49757ad Auto merged
2004/10/12 14:57:45-07:00 osdl.net!markh
Message type support for tracking open channels

(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@334 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
0527f7a66b Auto merged
2004/10/12 14:57:45-07:00 osdl.net!markh
This takes care of tracking open channels through configuration
changes.  The channel structures and data are maintained until the last
instance is closed and there are no unexpired retained events.  Then the
data is freed up.

(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@333 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
b0b6bd5b78 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_event

2004/10/12 14:57:46-07:00 osdl.net!markh
Handle open channels cluster wide and track opens.  Free up channel
data when there are no more references.

Also, fix some compiler warnings in lib/evt.c

BKrev: 416c53d279cT2JNVM_jQ5qBjLGe6EQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@332 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Miyotaka Sakai
3691a0588a correct defalut component name
(Logical change 1.92)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@331 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 09:12:20 +00:00
Miyotaka Sakai
e1b8653f9b testamf5.c, testamf3.c:
correct defalut component name
testamf4.c:
   correct defalut component name

BKrev: 416a4e740QCv2KoVOb0lbFRJYINodA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@330 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 09:12:20 +00:00
Miyotaka Sakai
f2c994b9db correct defalut component name
(Logical change 1.92)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@329 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 09:12:20 +00:00
Miyotaka Sakai
eb57bac8c6 main.c, handlers.h, evt.c, evs.c, clm.c, ckpt.c, amf.c:
exec_dump_fn support as SIGUSR2 handler to easy to debug

BKrev: 416a3b42053878SDRpbH_G7EUB4rAQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@328 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 07:50:26 +00:00
Miyotaka Sakai
3a05293f91 exec_dump_fn support as SIGUSR2 handler to easy to debug
(Logical change 1.91)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@327 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-11 07:50:26 +00:00
Steven Dake
018d786945 Auto merged
2004/10/04 16:08:46-07:00 mvista.com!sdake
Remove unneeded debug printf

(Logical change 1.90)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@326 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Steven Dake
b003253b26 Change req_header to res_header to match rest of
library, especially for out of order queued messages.

(Logical change 1.90)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@325 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Steven Dake
0ad467ca41 Merge sdake@bk.osdl.org:/var/bk/openais
into persist.az.mvista.com:/home/sdake/openais

2004/10/04 16:10:02-07:00 mvista.com!sdake
testamf.c:
  Change testamf to just test protection group tracking
  and componentcapabilitymodelget.
amf.c:
  Change req_header to res_header to match rest of
  library, especially for out of order queued messages.
  Remove unneeded debug printf

BKrev: 416301fc-l-UbKOcLV0FMuNqzCEQIw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@324 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Steven Dake
a212b03fa1 Auto merged
2004/10/04 16:09:33-07:00 mvista.com!sdake
Change testamf to just test protection group tracking
and componentcapabilitymodelget.

(Logical change 1.90)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@323 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 20:20:12 +00:00
Miyotaka Sakai
865d4fd47c amf.h, main.c, amf.c:
add Amfcomponent state dump mechanism

BKrev: 4162c542Q_AtRTLkaWtprRi7H3ew7w


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@322 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 16:01:06 +00:00
Miyotaka Sakai
31b9847790 add Amfcomponent state dump mechanism
(Logical change 1.89)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@321 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-05 16:01:06 +00:00
Miyotaka Sakai
17a2b4ed1a add surpressing health check printf message
(Logical change 1.88)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@320 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 09:30:26 +00:00
Miyotaka Sakai
69af53836a testamf.c:
add to reduce health check printf message
testamf6.c, testamf5.c, testamf4.c, testamf3.c, testamf2.c, testamf1.c:
  add to reduce health check printf message

BKrev: 415e7532j5RNbHSwQl4tF2HzMJjayQ


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@319 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 09:30:26 +00:00
Miyotaka Sakai
ce9948db45 add suppressing healthcheck pritf message
(Logical change 1.88)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@318 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 09:30:26 +00:00
Steven Dake
6b42f21c83 Fix a bunch of errors in node get and async node get.
(Logical change 1.87)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@317 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 01:23:54 +00:00
Steven Dake
3e8c9fdda6 Increase code coverage of clm code.
(Logical change 1.87)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@316 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-02 01:23:54 +00:00