]> git.proxmox.com Git - mirror_corosync.git/commit
Currently saLckResourceUnlockAsync leaves the lockid in the handle database even
authorPatrick Caulfield <pcaulfie@redhat.com>
Wed, 13 Jun 2007 09:01:30 +0000 (09:01 +0000)
committerPatrick Caulfield <pcaulfie@redhat.com>
Wed, 13 Jun 2007 09:01:30 +0000 (09:01 +0000)
commitd147700e9540ed209175549e4450ceed96dc7266
treec42d7717519c803f05e7809b877ef7dc992b6c60
parentb392956ef47a8343db456e14b027d9d9d03988a6
Currently saLckResourceUnlockAsync leaves the lockid in the handle database even
when the lock has been unlocked. This can cause exec crashes if the lock is
unlocked twice.

This patch adds an extra field to the res_lib_lck_resourceunlockasync structure
so that the library can remove the lock from the handle database when the lock
is unlocked successfully, as well as code to do it, obviously.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1383 fd59a12c-fef9-0310-b244-a6a79926bd2f
exec/lck.c
include/ipc_lck.h
lib/lck.c