ctdbUnlockResource
Release any locks held by resource.
DECLARATION
CTDBRET ctdbDECL ctdbUnlockResource(CTHANDLE resource);
DESCRIPTION
Unlocks a resource. The resource is only unlocked if it was previously locked by ctdbFirstResource(), ctdbNextResource(), ctdbFindResource() or ctdbFindResourceByName().
RETURN
ctdbUlnlockResource() returns CTDBRET_OK on success.
EXAMPLE
if (ctdbIsResourceLocked(hRes))
ctdbUnlockResource(hRes);
SEE ALSO
ctdbAllocResource(), ctdbFreeResource(), ctdbAddResource(), ctdbDeleteResource(), ctdbUpdateResource(), ctdbFirstResource(), ctdbNextResource(), ctdbFindResource(), ctdbFindResourceByName(), ctdbGetResourceType(), ctdbSetResourceType(), ctdbGetResourceNumber(), ctdbSetResourceNumber(), ctdbGetResourceName(), ctdbSetResourceName(), ctdbGetResourceDataLength(), ctdbGetResourceData(), ctdbSetResourceData(), ctdbIsResourceLocked(), Locking