mirror of
https://github.com/ceph/ceph
synced 2024-12-13 23:17:07 +00:00
moved cap call around, helps alleviate an assertion
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1260 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
bef33e1bc0
commit
6fc29fa4d4
@ -2356,7 +2356,7 @@ void Server::handle_client_open(MClientRequest *req,
|
||||
|
||||
// can we issue the caps they want?
|
||||
version_t fdv = mds->locker->issue_file_data_version(cur);
|
||||
Capability *cap = mds->locker->issue_new_caps(cur, mode, req);
|
||||
//Capability *cap = mds->locker->issue_new_caps(cur, mode, req);
|
||||
|
||||
// create signed security capability
|
||||
// no security, just include a blank cap
|
||||
@ -2367,7 +2367,7 @@ void Server::handle_client_open(MClientRequest *req,
|
||||
utime_t sec_time_end = g_clock.now();
|
||||
cout << "Get security cap time " << sec_time_end - sec_time_start << endl;
|
||||
|
||||
|
||||
Capability *cap = mds->locker->issue_new_caps(cur, mode, req);
|
||||
if (!cap) return; // can't issue (yet), so wait!
|
||||
|
||||
dout(12) << "open gets caps " << cap_string(cap->pending()) << " for " << req->get_source() << " on " << *cur << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user