Steven Dake
844937b6cd
Rename: exec/poll.h -> exec/aispoll.h
...
(Logical change 1.28)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@87 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
fc3435c50d
Rename: exec/poll.c -> exec/aispoll.c
...
(Logical change 1.28)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@86 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
9524f13926
Rename: exec/poll.c -> exec/aispoll.c
...
}(Logical change 1.28)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@85 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
295d70a3c8
Rename poll.h to aispoll.h
...
(Logical change 1.28)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@84 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:41 +00:00
Steven Dake
a8b9d96da0
Initial revision
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@83 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-09 21:35:40 +00:00
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
48c503d2e2
Fix merge bugs from changeset 1.23.
...
BKrev: 40edb2ddF4jV4bxQYmbXj7nCSPCe2w
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@81 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
354363f512
Development documentation update. After reading these docs, it should
...
be possible to add a service to the AIS.
(Logical change 1.26)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@79 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 19:45:04 +00:00
Steven Dake
87e321e70d
Learn how to develop an AIS service with README.devmap.
...
BKrev: 40eda440k9_Mia7kFQvGzgthaN_bWQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@78 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-08 19:45:04 +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
4128791f48
Cleanup last commit so build occurs properly.
...
BKrev: 40ec739f-StbBZFtCXNnVcEbdIqOYg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@76 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
d0d1338083
Big cleanup of executive to pass connection info by reference instead
...
of having connection info as an array seperate from the poll interface.
This makes the code alot cleaner and easier to read, plus removes
duplicated code in the connection array management.
BKrev: 40ec72dd7wKGeQDubAA6lmUMc7JjOQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@74 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 22:02:05 +00:00
Steven Dake
843488f322
update todo by removing completed items.
...
(Logical change 1.24)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@73 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
57b0cdd65e
Run full tests instead of writing a bunch of checkpoints.
...
(Logical change 1.24)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@68 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
405795d134
change message source to use conn_info field instead of fd.
...
Also removed a few unneeded calls which were moved to the
amf.c file.
(Logical change 1.24)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@65 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
98bcde6396
valgrind found an off-by-one error in message frees that could lead
...
to corruption.
l
(Logical change 1.23)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@63 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-07 21:12:01 +00:00
Steven Dake
dea0281860
Clean up some errors found with valgrind 2.1.1.
...
BKrev: 40ec6721IO7rAWx1t4cNnFNTugIZ1A
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@62 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
226cf07c24
Every exec message was of the prototype int func (int fd, void *msg).
...
The "int fd" was not used by an executive message and was dead code from
a previous implementation. This dead parameter removed from the tree.
BKrev: 40eb05fa_UbGyISyMyNciMoGXAXDeg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@58 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
b13fc41331
Use new APIs for handle reference counting
...
(Logical change 1.21)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@56 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 19:25:41 +00:00
Steven Dake
b3773f0dc3
Change clunky locking used in library APIs to use reference counting
...
instead. A BIG thanks to Chris Friesen who provided the initial ideas,
additional comments and more ideas leading up to the commit.
BKrev: 40eafcb50VMDbK4i9ZEiu0_90gFlPQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@55 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 19:25:41 +00:00
Steven Dake
ccd9d2d7e0
Fix example to use component names in example service group.
...
(Logical change 1.21)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@54 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 19:25:41 +00:00
Steven Dake
9dbb8ba891
Change activate poll definitions to be generic instead of AMF
...
specific.
(Logical change 1.21)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@53 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 19:25:41 +00:00
Steven Dake
ec917418d9
Use new APIs for handle reference counting.
...
(Logical change 1.21)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@52 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
27ee5fe7c0
Fix segfault during membership changes with multiple leaves
...
at the same time.
BKrev: 40eaeec3CJrXaOzED0qddXmUUurQdg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@50 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-06 18:26:11 +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
8205ddc94c
Fix two node cluster membership event not appearing on leave problem
...
reported by Chris Friesen.
BKrev: 40e477d75L2YauKHr18UGUlPGfAEoA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@47 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 20:45:11 +00:00
Steven Dake
56f87814a1
remove dead code.
...
BKrev: 40e451f2-IOwwPNaNm65NetyBme-nw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@46 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-01 18:03:30 +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
b655d9de7e
The group messaging interface has been exported as a library for use
...
in other programs. The key interfaces are exec/gmi.h and exec/poll.h.
gmi.h describes the interface for group messaging, while poll.h
describes the interface for abstracting poll system call with timers
and integrated with gmi.
By including these headers in programs and linking with libgmi, it is
possible to use the virtual synchrony layer (group messaging interface)
used in AIS for other applications.
BKrev: 40e30f7bM1KpRbp3-Bf2qVPRH1EsFA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@44 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +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
21f189dde9
make clean didn't remove ckptbench and ckptbenchth binaries
...
(Logical change 1.17)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@38 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-06-30 19:07:39 +00:00