*** empty log message ***

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@126 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sage 2005-01-26 06:03:46 +00:00
parent 908bb37eba
commit 2e46092dbf

View File

@ -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->