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
Steven Dake
c1044ae100
defect 677
...
SectionOverwrite with null sectionId segfaults
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@734 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:01:29 +00:00
Steven Dake
1686406028
defect 675
...
section overwrite with null dataBuffer parameter locks up
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@732 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 20:00:15 +00:00
Steven Dake
1bf4e3bb25
defect 734
...
cleanup include files and exports from libraries
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@731 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 19:57:48 +00:00
Steven Dake
f617334946
Remove some warnings from the compile.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@724 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 23:10:37 +00:00
Steven Dake
6b719b3504
Enables test caes in saftest to pass by returning failure return codes in both
...
callback and return function. This may have to change later if a later errata
changes this functionality.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@722 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:36:51 +00:00
Steven Dake
0f9972efb5
defect 655
...
invalid checkpoint open flags should return ERR_BAD_FLAGS
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@719 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:32:43 +00:00
Steven Dake
54ea8b5920
defect 654
...
wrong error code returned when checkpointSize > maxSections * maxSectionsSize in
checkpoint open.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@718 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:32:08 +00:00
Steven Dake
179fbe1ed7
defect 653
...
saCkptCheckpointOpen segfaults if null parameter passed in checkpointName
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@717 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:31:28 +00:00
Steven Dake
9ac741d7e3
defect 652
...
saCkptCheckpointOpen segfaults if null parameter passed to checkpointHandle
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@716 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:30:35 +00:00
Steven Dake
7a82e2acae
defect 651 - saCkptCheckpointUnlink segfaults if checkpointName attribute is null
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@715 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:29:37 +00:00
Steven Dake
88dea715ff
defect 646 - wrong return code in checkpoint open
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@714 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:28:06 +00:00
Steven Dake
82d516ea11
defect 634
...
saCkptDispatch blocks if invalid dispatch flag is set
(Logical change 1.215)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@687 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:45:25 +00:00
Steven Dake
d67705ec20
defect 633
...
saCkptInitialize crashes if callbacks parameter is null
(Logical change 1.214)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@685 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:44:41 +00:00
Steven Dake
c08428f246
Fix segfault when address of checkpoint handle is null to the initialize function
...
(Logical change 1.213)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@682 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:43:52 +00:00