[Openais] [lck 1/4] Return SA_AIS_ERR_NOT_EXIST in saLckResourceUnlock
Jan Friesse
jfriesse at redhat.com
Thu Jun 4 09:12:13 PDT 2009
This is very controversal, and I'm still not sure about correctnes
of this. Becuase:
- AIS B.03.01 don't have ERR_BAD_HANDLE as a posibility of returned code
and can return only SA_AIS_ERR_NOT_EXIST
- AIS B.01.01 can return ERR_BAD_HANDLE and ERR_NOT_EXISTS
And because SAF Test is written for B.01.01, it expect support for both.
---
trunk/lib/lck.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/trunk/lib/lck.c b/trunk/lib/lck.c
index 5e31885..5d2dbce 100644
--- a/trunk/lib/lck.c
+++ b/trunk/lib/lck.c
@@ -1039,6 +1039,7 @@ saLckResourceUnlock (
error = hdb_error_to_sa (hdb_handle_get (&lckLockIdHandleDatabase,
lockId, (void *)&lckLockIdInstance));
if (error != SA_AIS_OK) {
+ error = SA_AIS_ERR_NOT_EXIST;
goto error_exit;
}
--
1.5.5.6
More information about the Openais
mailing list