Commit Graph

44 Commits

Author SHA1 Message Date
Steven Dake
4ff4c440ca Patch from Russell Bryant to fix up gcc 4 warnings
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@793 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-12 22:29:35 +00:00
Mark Haverkamp
00c5457af7 The current event service code will start rejecting received events
after 4gig because it thinks that they are duplicates.  
This update fixes that problem.  Now I am keeping a full 64 bit id for
checking for duplicate/re-sends, etc.  separate from the event ID.  I
also check that a new event ID is not in use by a retained event.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@792 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-11 19:22:50 +00:00
Mark Haverkamp
fbddefe965 Add a check field to the handle structure to make it less
likely to get a random valid handle.
Fix a couple bugs in the event service that this change exposed.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@791 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-05 18:34:53 +00:00
Mark Haverkamp
096153983f Fix for BUG 803. We need to complete a library call even if the
channel requested for unlink has been deleted previous to processing
an unlink request.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@790 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-02 21:35:34 +00:00
Steven Dake
283790b715 Add infrastructure support for multiring to totem library
Make totemsrp support multiple instances of a running protocol within one app.
Rename libtotem to libtotem_pg because of a name conflict with some movie player


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@782 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-29 20:55:25 +00:00
Mark Haverkamp
72df6d9a0f Move the check of subscription ID in lib_evt_event_subscribe before
processing the filters.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@781 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-27 20:22:04 +00:00
Mark Haverkamp
61f90c42e6 Fix for bug 776. Don't require retained events to expire
before deleting the channel on unlink.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@780 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-27 20:19:39 +00:00
Mark Haverkamp
588bca5636 Wait to return status to the library until the clear request
was received over the network so that the publish and receipt of the
event is in sync with the time clear request.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@727 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-30 22:36:10 +00:00
Mark Haverkamp
217207babb Some fixes to the event service based on the saftest event
tests results.  

The changes may affect applications currently using the event service. 

1. Timeout value to the saEvtChannelOpen call was updated to use
SA_TIME_MAX instead of 0 for infinite timeout.

2. added cleanup in the library to remove associated events when a
channel is closed, and remove associated channels when finalize is
called.

3. Added some new checking args for NULL and returning the correct error
code.

4. fixed dispatch to return correct status with SA_DISPATCH_ONE and no
available poll data.

5. Makefile had bad dependency for evt library build.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@706 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-21 22:19:03 +00:00
Mark Haverkamp
b3767775c4 Fixes to patterns and filters for B API spec support.
(Logical change 1.204)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@661 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-13 20:07:55 +00:00
Mark Haverkamp
ade5ce30de Allow services to use the openais.conf file for setting custom options.
Evt now allows the maximum delivery queue size and the resume size to be
set in openais.conf

(Logical change 1.195)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@639 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-26 22:19:26 +00:00
Mark Haverkamp
2b18ac9b77 More updates to make event conform to B spec.
(Logical change 1.193)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@633 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-25 20:46:41 +00:00
Steven Dake
3d8dbf1d32 defect 505 - fix uncompilable with gcc 2.95
(Logical change 1.186)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@619 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-21 00:57:34 +00:00
Mark Haverkamp
501e7987eb For defect 501.
Fix possible stale pointers in async lists if an application
disconnects before its command has been fully processed.

(Logical change 1.184)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@615 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-20 21:46:14 +00:00
Steven Dake
7d1b8e0d11 defect 188 - use two fds instead of one fd for I/Os to executive
(Logical change 1.175)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@594 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:08:20 +00:00
Steven Dake
c3e125b165 defect 478 - remove extra parameter to config change.
(Logical change 1.174)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@590 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 19:03:18 +00:00
Mark Haverkamp
fe62f602f1 Replace assert with a return. This will allow the custer to continue
to run.  This happens when a joining node receives a message from a node
that it doesn't know about yet.  This is a temporary fix for now.

(Logical change 1.169)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@576 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-05 15:56:49 +00:00
Mark Haverkamp
790c36084c This update allows retained events from a merging partition to
be delivered to applications with the associated channels already
open at the time of the merge.

(Logical change 1.160)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@553 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 18:22:39 +00:00
Mark Haverkamp
00fc37a307 Fix an off by one error causing a bad event ID to be sent after
a recovery in some cases.

(Logical change 1.155)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@542 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-22 23:22:34 +00:00
Mark Haverkamp
81b83714ec Event service now reconciles open channels and retained events between active
merging partitions.

(Logical change 1.154)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@541 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-17 22:44:28 +00:00
Steven Dake
1e3efb5ec5 Block multicast messages during synchronization.
(Logical change 1.151)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@535 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-16 23:41:41 +00:00
Steven Dake
20f0520e8d cleanup some shared datatypes.
(Logical change 1.150)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@532 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-16 18:23:54 +00:00
Mark Haverkamp
58cf2b9a20 New event service recovery code implementation for totem and the new
sync services.

(Logical change 1.144)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@514 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-09 22:08:07 +00:00
Steven Dake
365d2bf598 Auto merged
2005/02/16 17:24:12-07:00 mvista.com!sdake
send ring_id through configuration changes patch from Muni Bajpai.

(Logical change 1.139)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@501 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-17 00:25:01 +00:00
Mark Haverkamp
299ec450df Set default event ID.
(Logical change 1.138)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@496 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-15 23:10:40 +00:00
Mark Haverkamp
191871bb73 Add unlink function.
(Logical change 1.137)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@493 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-15 16:54:46 +00:00
Mark Haverkamp
cd76f75d0a Add handler for channel open async
(Logical change 1.133)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@478 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-08 17:16:52 +00:00
Mark Haverkamp
b5d82dce9a Convert to B spec.
Add in endian conversion functions.

(Logical change 1.130)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@465 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-04 21:19:20 +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
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
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
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
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
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
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
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
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
Mark Haverkamp
c87e9631fe evt code updated to handle cluster config changes better. Now,
when a node joins, it is sent any retained events that have time
left on them. Also, if the joining node had been a part of the cluster
in the past, it is sent the next event ID that it should use so as to
not generate duplicate event IDs. Channel open requests are now
completed in the exec handler, with channel close code to follow later.

(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@307 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Steven Dake
67d57f3da9 Add recovery plug support to evt.
(Logical change 1.74)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@262 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-18 07:03:51 +00:00
Mark Haverkamp
c38ad9061f Clean up some comments code. (comments, old macro).
(Logical change 1.64)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@234 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-07 15:14:59 +00:00
Mark Haverkamp
acba87e179 Completed most of the event service functionality.
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@223 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Steven Dake
11b4f97488 Add support to eventing for flow control.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@180 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Mark Haverkamp
cba04f10c5 (Logical change 1.46)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@135 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
9dc4b066ad Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@134 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:42 +00:00