mirror of
https://github.com/ceph/ceph
synced 2025-01-21 02:31:19 +00:00
* 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:
parent
40f37d0bee
commit
66eb87ff8d
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user