[Openais] [PATCH]: openais/trunk: Finalize lckResourceHandle in close operation

Ryan O'Hara rohara at redhat.com
Wed Jun 3 11:58:58 PDT 2009


When closing a resource via saLckResourceClose, we must finalize
(destroy) the lckResourceHandle. Without this we'll won't get
BAD_HANDLE errors if we close a resource and then do an operation on
that resource (ie. saLckResourceLock).

I believe this solves the problem that Jan Friesse was seeing when
running saftest against the lock service.

Ryan

-------------- next part --------------
Index: lib/lck.c
===================================================================
--- lib/lck.c	(revision 1936)
+++ lib/lck.c	(working copy)
@@ -738,7 +738,7 @@
 		goto error_put;
 	}
 
-	/* lckResourceInstanceFinalize (lckResourceInstance) */
+	lckResourceInstanceFinalize (lckResourceInstance);
 
 error_put:
 	hdb_handle_put (&lckResourceHandleDatabase, lckResourceHandle);


More information about the Openais mailing list