Commit Graph

184 Commits

Author SHA1 Message Date
Steven Dake
619fc3a59d Fix a merge problem with the previous update to the amf with
the conn_info structure.
the track list was not being initialized at start.

(Logical change 1.27)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@82 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 20:47:25 +00:00
Steven Dake
e95e1e25cc Fix a couple merge problems with the previous update to clm with the
conn_info structure.
the track list was not being initialized.  When track start was called
the tracking wasn't added to a list.  When track stop was called
the tracking was not deleted.
The result of all this is that cluster membership tracking was broken
previously.

(Logical change 1.27)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@80 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 20:47:25 +00:00
Steven Dake
3f9257a297 Fix build errors after previous commit.
(Logical change 1.25)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@77 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:05:19 +00:00
Steven Dake
47a9710196 pass conn_info to all messages instead of file descriptor.
This requires changing the initialization phase of the socket
and all calls made.

(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@75 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
8c8c71917c store conn_info field is component structure.
(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@72 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
df2c3c4918 pass conn_info to all messages instead of file descriptor.
(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@71 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
2efdb4258c pass conn_info to all messages instead of file descriptor.
this requires removing the connection structure and replacing
with the conn_info structure.

(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@70 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
c4ac900b31 when gmi.c changed, full project would not always be rebuilt
fixed this issue.

(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@69 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
e95bf676ed Add track active variable to keep track of active connections.
(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@67 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
4b89e5e20e cleanup valgrind warnings.
(Logical change 1.24)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@66 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
ae695b04d0 Change memcpy to memmove to quiet down valgrind.
(Logical change 1.23)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@64 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 21:12:01 +00:00
Steven Dake
5ac0ebb149 Get rid of some errors from valgrind by initializing variables.
(Logical change 1.23)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@61 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 21:12:01 +00:00
Steven Dake
bc5fe2a786 Remove extra unused parameter to exec messages.
(Logical change 1.22)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@60 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 20:05:14 +00:00
Steven Dake
6e3637ac98 Remove extra parameter to exec messages.
(Logical change 1.22)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@59 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 20:05:14 +00:00
Steven Dake
88996cbb21 Add activate poll message.
(Logical change 1.21)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@57 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 19:25:41 +00:00
Steven Dake
445dd33b13 add activate poll message
(Logical change 1.21)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@51 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 19:25:41 +00:00
Steven Dake
beb82b3bcb Wrong value being used to determine leave list, resulting in
a memcpy with a -1 value in some cases, and the incorrect memcpy
in other cases.

(Logical change 1.20)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@49 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 18:26:11 +00:00
Steven Dake
7c1c23ff33 With a two node cluster and one node killed, the remaining node
didn't sent the appropriate configuration changes to the clm API
or to the rest of the services.

(Logical change 1.19)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@48 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 20:45:11 +00:00
Steven Dake
59dd1f28a1 remove dead code.
(Logical change 1.18)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@45 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 18:03:30 +00:00
Steven Dake
f3ad14ab08 Initialize logging function in group messaging interface.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@43 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
78e871d1ec Build gmi static and shared library for use in other programs.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@42 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
3091ebaac9 Add logging function init interface.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@41 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
fd8978487f Add ability to pass in logging function for people that want to
use their own logging functions in their own programs.

(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@40 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
b7579dec5d add debug checking version of logging function.
(Logical change 1.17)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@39 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00
Steven Dake
7f24c23651 Fix cluster membership API not being authenticated bug.
(Logical change 1.15)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@31 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-28 22:04:20 +00:00
Steven Dake
86c3d01bf4 Make bind to a device really work properly. Now
it is possible to specify the bind network and
the networking will take place over that interface.

(Logical change 1.14)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@30 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-27 21:01:24 +00:00
Steven Dake
3640e7d346 Add priv drop so process doesn't have to run
as root in order to lock, set RR 99, and
bind to a specific ethernet interface for multicast.

(Logical change 1.14)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@29 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-27 21:01:24 +00:00
Steven Dake
577163d6fb Fix binding rules so that instead of binding to INADDR_ANY for
UDP sockets, bind to specific interface defined in network.conf.
This is done by creating two fds.  gmi_fd_token is used for all
token communication.  gmi_fd_mcast is used for all mcast
communication.  I'm not sure if gmi_fd_mcast binding rules is
correct.  Once work begins on multipathing, this will have to
be figured out :)

2004/06/23 13:55:52-07:00 mvista.com!sdake
Use portable mreq instead of mreqn when joining the multicast
group.

(Logical change 1.13)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@26 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-23 21:01:32 +00:00
Steven Dake
df8eda0280 x86 was not setting port to network byte order, which resulted in
port being byte swapped.  This of course, doesn't work well with
xscale boards.

(Logical change 1.9)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@17 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-20 07:30:46 +00:00
Steven Dake
7e1a275900 single node AMF would fail because of a recursion bug. Removed
the recursion by queueing single node message delivery as a timer
with 0 timeout.  This was happening before, but the logic was
wrong.

(Logical change 1.7)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@13 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 23:50:26 +00:00
Steven Dake
970b3e9caa Crash when no network.conf file present (missing error checking).
(Logical change 1.6)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@12 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-17 21:54:28 +00:00
Steven Dake
4130763665 Fix bug in membership protocol where form token sometimes times out
because the initial send of the token is sent to the wrong address.

2004/06/16 15:42:49-07:00 mvista.com!sdake
Performance enhancements: Allow more messages to be multicast per
token possession to reach 8.8MB/sec checkpoint performance without
remcasts.  Trim gather/commit timeouts to 100 msec to speed up the
membership gathering process.

(Logical change 1.5)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@10 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-16 22:50:39 +00:00
John Cherry
95f17845c6 (Logical change 1.3)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@5 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:04 +00:00
John Cherry
7bede9c4bb Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@4 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-15 22:18:03 +00:00