* bugfix for filelock xlocking

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1374 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sageweil 2007-05-25 04:35:31 +00:00
parent 40f37d0bee
commit 66eb87ff8d

View File

@ -234,7 +234,8 @@ public:
bool can_xlock(MDRequest *mdr) {
if (!parent->is_auth()) return false;
if (state != LOCK_LOCK) return false;
if (mdr && xlock_by == mdr) return true;
if (xlock_by == 0 ||
(mdr && xlock_by == mdr)) return true;
return false;
}
bool can_xlock_soon() {