Steven Dake
293941b8f8
defect 731
...
error - saSendReceiveReply instead of error = function
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@729 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 19:22:13 +00:00
Mark Haverkamp
dc23389a9a
Check for reserved event ID and return SA_AIS_ERR_INVALID_PARAM.
...
Bug 694
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@728 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-07 20:26:01 +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
Steven Dake
d07ea82159
defect 673
...
fix checkpoint unlink not cleaning up checkpoints.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@726 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-30 20:32:55 +00:00
Steven Dake
2e4b10583d
defect 502
...
fix assert when packet added in multicast message handler.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@725 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-30 20:29:33 +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
Mark Haverkamp
d192e91974
Error comparing unsigned to less than zero.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@723 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 22:14:51 +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
68ae4e8b3c
defect 669
...
token retransmits dont work under heavy load.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@721 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:34:08 +00:00
Steven Dake
58e7e0f3c0
defect 656
...
libraries not built with position independent code. This causes x86_64 not to build.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@720 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 21:33:26 +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
91c6b6d699
Patch from Muni Bajpai to improve synchronization after a merge.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@713 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-28 19:01:25 +00:00
Mark Haverkamp
2b3bcfb6e0
saEvtEventAttributesSet needs to check that the priority value passed in
...
is valid.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@712 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-27 21:33:30 +00:00
Steven Dake
fa198acf82
Patch from Szakacsits Szabolcs to improve error detection in parsing
...
configuration files.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@711 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-27 20:26:21 +00:00
Mark Haverkamp
603e49e662
The channel open functions need to check for bad flags.
...
I set the newly created event elements to the default
values in the B spec.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@710 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-24 21:20:17 +00:00
Mark Haverkamp
cbc8feca89
I discovered that our SaAisErrorT is incorrect. I have included a patch
...
to fix that. The SA_AIS_ERR_BAD_CHECKPOINT code doesn't exist. I
replaced it with SA_AIS_ERR_BAD_OPERATION.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@709 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-24 21:19:02 +00:00
Mark Haverkamp
d330f32d78
The A spec required patterns to be set but the B
...
spec doesn't. Fix lib/evt.c and test/testevt.c
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@708 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-23 14:44:29 +00:00
Mark Haverkamp
19801c20ce
This fixes some B spec related parameter checks
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@707 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-21 22:22:02 +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
Steven Dake
9b4eb5f569
defect 643
...
saClmNodeGet timeout parameter of 0 should return SA_AIS_ERR_TIMEOUT
(Logical change 1.224)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@705 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:52:55 +00:00
Steven Dake
93bc3cc5c0
clm.c:
...
defect 643
saClmNodeGet timeout parameter of 0 should return SA_AIS_ERR_TIMEOUT
BKrev: 42b31c07wymW-ntnqdOvHrTrCDEEhA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@704 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:52:55 +00:00
Steven Dake
329fbb4fe3
defect 642
...
fix segfault when null clusterNode parameter passed to saClusterNodeGet
(Logical change 1.223)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@703 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:52:08 +00:00
Steven Dake
0c740cf0d3
clm.c:
...
defect 642
fix segfault when null clusterNode parameter passed to saClusterNodeGet
BKrev: 42b31bd8J6eYpNHnpFWwHWc3waURXw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@702 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:52:08 +00:00
Steven Dake
2829529059
clm.c:
...
defect 641
NodeGetAsync called with no nodeget callback should return SA_AIS_ERR_INIT
BKrev: 42b31ba3yncxyr2C6XoRwB_9yMdvRA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@701 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:51:15 +00:00
Steven Dake
31d37962ad
defect 641
...
NodeGetAsync called with no nodeget callback should return SA_AIS_ERR_INIT
(Logical change 1.222)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@700 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:51:15 +00:00
Steven Dake
71c43b313b
defect 640
...
fix wrong error code when null version parameter passed to saClmInitialize
(Logical change 1.221)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@699 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:50:27 +00:00
Steven Dake
0d4d8dbc95
clm.c:
...
defect 640
fix wrong error code when null version parameter passed to saClmInitialize
BKrev: 42b31b73Cok4gPBc42AbPIksg9Rw2w
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@698 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:50:27 +00:00
Steven Dake
9dbe6fcb8b
clm.c:
...
defect 639
fix segfault if null callback parameter passed to saClmInitialize
BKrev: 42b31b3dnxjnqS8cEzAPHPJmbMdVEw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@697 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:49:33 +00:00
Steven Dake
a6496d9b9b
defect 639
...
fix segfault if null callback parameter passed to saClmInitialize
(Logical change 1.220)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@696 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:49:33 +00:00
Steven Dake
5be178c2b2
defect 638
...
fix segfault if clmHandle is null to saClmInitialize
(Logical change 1.219)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@695 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:48:50 +00:00
Steven Dake
687912e471
clm.c:
...
defect 638
fix segfault if clmHandle is null to saClmInitialize
BKrev: 42b31b12gslEYBvbGYQJgGi6uFw8hg
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@694 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:48:50 +00:00
Steven Dake
74b754da78
clm.c:
...
defect 637
Fix saClmFinalize will block with threads
BKrev: 42b31ad2mqut41t3GjnF-5BmQYDkOA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@693 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:47:46 +00:00
Steven Dake
703710282c
defect 637
...
Fix saClmFinalize will block with threads
(Logical change 1.218)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@692 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:47:46 +00:00
Steven Dake
54bc55ff8b
defect 636
...
fix saClmDispatch blocks on invalid dispatch flags
(Logical change 1.217)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@691 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:47:03 +00:00
Steven Dake
0362c8717f
clm.c:
...
defect 636
fix saClmDispatch blocks on invalid dispatch flags
BKrev: 42b31aa7DNo7fwD1STjEtZQflKEaCw
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@690 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:47:03 +00:00
Steven Dake
5fe1bde9c6
clm.c:
...
defect 635
saClmSelectionObjectGet crashes if selection object pointer is null
BKrev: 42b31a7e1tftUaCVpz36dDVxSI0wBA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@689 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:46:22 +00:00
Steven Dake
55165bb3df
defect 635
...
saClmSelectionObjectGet crashes if selection object pointer is null
(Logical change 1.216)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@688 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:46:22 +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
2a9b9a1d54
ckpt.c:
...
defect 634
saCkptDispatch blocks if invalid dispatch flag is set
BKrev: 42b31a459dDwB00enI3nSeayQwFODA
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@686 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
5ff508aeac
ckpt.c:
...
defect 633
saCkptInitialize crashes if callbacks parameter is null
BKrev: 42b31a19Ti58H5PxsI2NaDivhyz-fQ
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@684 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:44:41 +00:00
Steven Dake
02ef7d7431
ckpt.c:
...
Fix segfault when address of checkpoint handle is null to the initialize function
BKrev: 42b319e8cJKg9zY0XT9um2oqVst5Ug
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@683 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:43:52 +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
Steven Dake
a50e06d2cd
ckpt.c:
...
defect 631
Fix segfault if null pointer passed to selection object address of
saCkptSelectionObjectGet
BKrev: 42b319acUTulJHw99ALuUlMGTcgL1g
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@681 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:42:52 +00:00
Steven Dake
4e4e0ebaf1
defect 631
...
Fix segfault if null pointer passed to selection object address of
saCkptSelectionObjectGet
(Logical change 1.212)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@680 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:42:52 +00:00