Commit Graph

84 Commits

Author SHA1 Message Date
Steven Dake
e132bc580c Expose utils to the user
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1442 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:58:41 +00:00
Steven Dake
adb37f5d49 Now that -l is set correclt yuse #include <header.h> instead of using quotes.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1441 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-09-09 06:57:41 +00:00
Steven Dake
9d27cc2f35 Fix minor leaks caused by not calling pthread_mutex_destroy throughout the tree.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1412 fd59a12c-fef9-0310-b244-a6a79926bd2f
2007-08-07 23:52:21 +00:00
Fabien Thomas
b07e2dee27 remove invalid code / warnings detected by Intel compiler
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1308 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-11-16 17:34:44 +00:00
Fabien Thomas
c5b004ad05 return SA_AIS_ERR_INVALID_PARAM when vector ptr is NULL or len equal to 0
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1225 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-23 09:33:08 +00:00
Steven Dake
90ccff6bbc Solaris port for openais
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1175 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-08-05 02:22:12 +00:00
Steven Dake
b9b771b391 Validate IO Vector elements in a saCkptCheckpointWrite operation
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1147 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 03:26:22 +00:00
Steven Dake
19ad21f536 Correct malloc of checkpoint iteration size from 500 bytes to max section id
size bytes for the created checkpoint


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1145 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-21 03:07:14 +00:00
Steven Dake
24777c184f Make checkpoint service work according to specifications with regards to the
unlink operation.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1139 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-20 04:50:15 +00:00
Steven Dake
5a45b27fdc The open flags are used before they are verified to be valid.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1122 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-16 21:49:36 +00:00
Steven Dake
e167fbc727 Update to checkpoint service to use new APIs as rest of services do.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1118 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-11 23:41:56 +00:00
Steven Dake
bcc232dcbc Rename saConnectServiceTwo to saConnectService
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1114 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-07-10 22:18:32 +00:00
Steven Dake
01afe82393 32/64/mixed endian support for checkpoint service.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1074 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-06-21 21:15:16 +00:00
Steven Dake
afe1867a80 First take at doxygen support for openais APIs.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1034 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-05-21 23:01:34 +00:00
Steven Dake
0abc730b42 defect 1113
Checkpoint iteration is totally broken.  This patch makes checkpoint iteration
work properly for multiple checkpoint iterators and now is compliant with the
specifications for the trunk version.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@948 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-03-08 07:29:27 +00:00
Steven Dake
cf160dd9cd Fabien's patch for the BSD/Darwin port.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@926 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-21 07:32:00 +00:00
Steven Dake
c35db8b2c7 defect 1088
First patch for porting to BSD systems.  This patch removes the WAITALL
flag entirely from the library handlers, as it appears there may be some
portability problems with this flag.  The code already handles partial
reads anyway, so it was not necessary.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@920 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-10 22:53:18 +00:00
Steven Dake
ab525116aa defect 1066
original 1066 fix introduced new bug found with saftest


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@918 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-10 22:38:43 +00:00
Steven Dake
883b26d9ed defect 1066
memory leak in saCkptSectionIterationInitialize


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@912 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-01 21:01:24 +00:00
Steven Dake
e665c14f55 defect 1065
memory leak in checkpoint iteration when IterationNext has a failure condition
(like NO_MORE_SECTIONS)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@910 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-02-01 20:57:01 +00:00
Steven Dake
8eefe473ef defect 1046
SaErrorT in trunk branch, but only SaAisErrorT should be used


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@902 fd59a12c-fef9-0310-b244-a6a79926bd2f
2006-01-24 07:19:11 +00:00
Steven Dake
c2e9752a17 defect 895
Ruppert reported that there is code that doesn't do anything but should.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@821 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-09-22 19:51:12 +00:00
Steven Dake
ac4635563b defect 840
J Seltzer reported that closed checkpoints in the TRY_AGAIN state are not
closed in the executive but are closed in the library.  This patch fixes
that problem.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@806 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-29 19:47:01 +00:00
Steven Dake
e7f1e9200f enhancement 813
Rename ais_types.h header file to be more compliant with sa forum


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@796 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-08-17 19:27:25 +00:00
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
Steven Dake
2db57a7bf5 defect 790
if sectionDescriptor is null in iteration next call, segfault occurs


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@783 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-29 21:15:14 +00:00
Steven Dake
120e228992 defect 752
fix reference counting in checkpoint library


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@770 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 17:00:27 +00:00
Steven Dake
ec394bdf18 defect 750
in saCkptIterationFinalize if no active replica set, return error


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@768 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:59:13 +00:00
Steven Dake
6324c62026 defect 749
Make handle put work properly for IterationFinalize


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@767 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:58:42 +00:00
Steven Dake
506b37b4c9 defect 748
rename sectioniterator to sectioniteration in executive and library


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@766 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:58:02 +00:00
Steven Dake
4270bd2185 defecct 747
in saCkptSectionIterationInitialize if sectionsChosen invalid,
return INVALID_PARAM


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@765 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:57:23 +00:00
Steven Dake
1f6be061f8 defect 746
return INVALID_PARAM in saCkptSectionIterationInitialize if address is NULL


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@764 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:56:43 +00:00
Steven Dake
950c62c4db defect 745
in saCkptSectionCreate if initialData == NULL return INVALID_PARAM


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@763 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:56:09 +00:00
Steven Dake
2beb76decd defect 742
error not returned in saCkptSectionCreate if sectionCreationAttributes == NULL


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@760 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:52:55 +00:00
Steven Dake
461da3d514 defect 741
saCkptCheckpointOpenAsync doesn't return error when
checkpointSize > maxSections * maxSectionsSize


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@759 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:52:15 +00:00
Steven Dake
9a07e270ce defect 740
if open callback isn't set on saCkptCheckpointOpenAsync, return SA_AIS_ERR_INIT


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@758 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:51:37 +00:00
Steven Dake
73a30f9921 defect 739
saCkptCheckpointOpenAsync callback doesn't return error as per spec


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@757 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-15 16:50:34 +00:00
Steven Dake
6574c5f172 defect 717
if checkpoint is not writeable in durationset, return error


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@755 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:12:49 +00:00
Steven Dake
63ba2f7a17 defect 716
in durationtimeset if sectionId is null, return error


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@754 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:12:23 +00:00
Steven Dake
937b54d261 defect 715
synchronize open missing break in dispatch causing checkpointsyncasync callback
not to be called.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@753 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:11:57 +00:00
Steven Dake
5544f69462 defect 714
if checkpoint doesn't have write permissions in section delete, return error


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@752 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:11:22 +00:00
Steven Dake
4c586b894d defect 712
if sectionId is null in sectiondelete, return INVALID_PARAM


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@750 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:10:32 +00:00
Steven Dake
3946f75662 defect 710
if ioVector == NULL in checkpoint read error should be returned


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@748 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:09:39 +00:00
Steven Dake
f9e2657a9a defect 709
if synchronize async called, but no callback set, error not returned


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@747 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:09:11 +00:00
Steven Dake
566e0e4b7e defect 708
checkpoint synchronize async call not implemented


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@746 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:08:39 +00:00
Steven Dake
1939c24938 defect 707
if checkpoint synchronize executedd with timeout=0, TIMEOUT error not returned


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@745 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:08:13 +00:00
Steven Dake
4ddb2fc143 defect 704
if checkpoint is opened without read permissions, checkpoint synchronize
should return SA_AIS_ERR_ACCESS.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@742 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:06:48 +00:00
Steven Dake
d8accbfacc defect 703
checkpoint synchronize calls do not check if active replica set


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@741 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:06:04 +00:00
Steven Dake
43806fe78e defect 682
null iovector caues checkpointRead to segfault



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@737 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:03:41 +00:00
Steven Dake
2b0711e51e defect 681
if null paramter passed to checkpoint service as iovector element, allocate
the io vector element


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@736 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:03:15 +00:00