Merge pull request #15258 from big-henry/wip-mds-misc-fix

mds: fix client ID truncation
This commit is contained in:
Jos Collin 2017-05-25 09:29:33 +05:30 committed by GitHub
commit 2f9ee0badd
2 changed files with 2 additions and 2 deletions

View File

@ -3080,7 +3080,7 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session,
unsigned max_bytes,
int getattr_caps)
{
int client = session->info.inst.name.num();
client_t client = session->info.inst.name.num();
assert(snapid);
assert(session->connection);

View File

@ -1853,7 +1853,7 @@ Capability* Locker::issue_new_caps(CInode *in,
// my needs
assert(session->info.inst.name.is_client());
int my_client = session->info.inst.name.num();
client_t my_client = session->info.inst.name.num();
int my_want = ceph_caps_for_mode(mode);
// register a capability