Signed-off-by: Sage Weil <sage@inktank.com>
break;
case CEPH_SESSION_RECALL_STATE:
- trim_caps(from, m->get_max_caps());
+ trim_caps(session, m->get_max_caps());
break;
default:
}
}
-void Client::trim_caps(int mds, int max)
+void Client::trim_caps(MetaSession *s, int max)
{
+ int mds = s->mds_num;
ldout(cct, 10) << "trim_caps mds." << mds << " max " << max << dendl;
- MetaSession *s = mds_sessions[mds];
int trimmed = 0;
xlist<Cap*>::iterator p = s->caps.begin();
// trim cache.
void trim_cache();
void trim_dentry(Dentry *dn);
- void trim_caps(int mds, int max);
+ void trim_caps(MetaSession *s, int max);
void dump_inode(Formatter *f, Inode *in, set<Inode*>& did, bool disconnected);
void dump_cache(Formatter *f); // debug