Commit Graph

713 Commits

Author SHA1 Message Date
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
Steven Dake
92ab7d0514 ckpt.c:
defect 630
  if a checkpoint is unlinked then opened it should return
  SA_AIS_ERR_NOT_EXIST

BKrev: 42b31972GC0d7zd0Xw4yt4RcQrxcCg


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@679 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:41:54 +00:00
Steven Dake
e8de042ab3 defect 630
if a checkpoint is unlinked then opened it should return
SA_AIS_ERR_NOT_EXIST

(Logical change 1.211)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@678 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:41:54 +00:00
Steven Dake
5e8e2e47a7 ckpt.c:
defect 629
  Return error if checkpoint has been unlinked on retentation duration set

BKrev: 42b3192dcHnUOXNAKirryjp4WHDl9g


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@677 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:40:45 +00:00
Steven Dake
fbdb04b8cf defect 629
Return error if checkpoint has been unlinked on retentation duration set

(Logical change 1.210)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@676 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:40:45 +00:00
Steven Dake
3f05a6fd64 defect 628
saCkptCheckpointStatusGet test case 13 from saftest fails

(Logical change 1.209)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@675 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:39:51 +00:00
Steven Dake
d1cff97210 ckpt.c, ckpt.h:
defect 628
  saCkptCheckpointStatusGet test case 13 from saftest fails

BKrev: 42b318f7gBulPAY6sscL0tMMMi9jMw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@674 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:39:51 +00:00
Steven Dake
b22ebd3288 Makefile, ckpt.c:
defect 627
  Fix API crash when second parameter of saCkptCheckpointStatusGet is null

BKrev: 42b318bd2NjZ6GGEcjf0mUQr9yL1EA


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@673 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:38:53 +00:00
Steven Dake
56fb7ca44c defect 627
Fix API crash when second parameter of saCkptCheckpointStatusGet is null

(Logical change 1.208)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@672 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:38:53 +00:00
Steven Dake
b064d567d4 defect 611
add some manual pages to openais

(Logical change 1.207)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@671 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:36:36 +00:00
Steven Dake
f047d8f44f defect 577
Implement token holding mode

(Logical change 1.207)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@670 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:36:36 +00:00
Steven Dake
85807f4883 Makefile, index.html:
defect 611
  add some manual pages to openais
openais_overview.8, openais.conf.5:
  new file
Many files:
  defect 577
  Implement token holding mode

BKrev: 42b31834M2cICKgskYf4EnywBr9Fiw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@669 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:36:36 +00:00
Steven Dake
eae1ab58e8 (Logical change 1.207)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@668 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:36:36 +00:00
Steven Dake
cfbdb93051 Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@667 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-17 18:36:35 +00:00
Mark Haverkamp
b2031c3875 Merge markh@bk.osdl.org:/var/bk/openais
into markh1.pdx.osdl.net:/home/localmarkh/views/BK/openais_work

2005/06/15 14:09:09-07:00 osdl.net!markh
Fix version handling code to be B spec compliant.
BUG 623.

BKrev: 42b09916lexB-dFgQMudnN6k_mmmkw


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@666 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-15 21:09:42 +00:00
Mark Haverkamp
1f1f048efc Fix version handling code to be B spec compliant.
BUG 623.

(Logical change 1.206)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@665 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-15 21:09:42 +00:00
Mark Haverkamp
221aa61328 Auto merged
2005/06/15 14:09:08-07:00 osdl.net!markh
Fix version handling code to be B spec compliant.
BUG 623.

(Logical change 1.206)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@664 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-15 21:09:42 +00:00