mirror of
https://github.com/ceph/ceph
synced 2025-03-06 16:28:28 +00:00
*** empty log message ***
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@126 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
908bb37eba
commit
2e46092dbf
@ -1106,13 +1106,28 @@ void MDS::handle_client_rename_file(MClientRequest *req,
|
||||
return;
|
||||
}
|
||||
|
||||
// make sure we can lock dest
|
||||
|
||||
// lock dest?
|
||||
if (!oldin->is_lockbyme() &&
|
||||
write_hard_start(oldin, req) == false) {
|
||||
// wait
|
||||
dout(7) << "dest/overwrite " << *oldin << " locking, waiting" << endl;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// make sure we can lock source
|
||||
|
||||
// lock source?
|
||||
if (!from->is_lockbymeprelock() ||
|
||||
!from->is_lockbyme()) {
|
||||
// wait
|
||||
dout(7) << "from " << *from << " locking, waiting" << endl;
|
||||
from->add_waiter(CINODE_WAIT_LOCK,
|
||||
new C_MDS_RetryMessage(this, req));
|
||||
return;
|
||||
}
|
||||
|
||||
// lock
|
||||
from->
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user