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

_______________________________________________
Openais mailing list
Openais@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to