1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix unlocks in clvmd-corosync.

The DLM unlock returns EUNLOCK in the lksb on success, not 0
This commit is contained in:
Christine Caulfield 2009-03-06 11:29:38 +00:00
parent fe3a28e2cc
commit 436cd05156
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
Version 2.02.46 -
================================
Flush memory pool and fix locking in clvmd refresh and backup command.
Fix unlocks in clvmd-corosync. Broken in 2.02.45.
Version 2.02.45 - 3rd March 2009
================================

View File

@ -510,7 +510,7 @@ static int _unlock_resource(const char *resource, int lockid)
DEBUGLOG("Unlock returned %d\n", err);
return err;
}
if (lksb.sb_status != 0)
if (lksb.sb_status != EUNLOCK)
{
DEBUGLOG("dlm_ls_unlock_wait returns lksb.sb_status: %d\n", lksb.sb_status);
errno = lksb.sb_status;