From: Yan, Zheng Date: Fri, 21 Feb 2014 05:32:21 +0000 (+0800) Subject: client: add flushing inode to proper list when auth mds changes X-Git-Tag: v0.79~179^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0638d6122297868132b23dad78fd3aa2b0cc97e9;p=ceph.git client: add flushing inode to proper list when auth mds changes add flushing inode to the new auth MDS' flushing caps list Signed-off-by: Yan, Zheng --- diff --git a/src/client/Client.cc b/src/client/Client.cc index b243ca1e716..5d2bd56ce21 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -2926,8 +2926,9 @@ void Client::add_update_cap(Inode *in, MetaSession *mds_session, uint64_t cap_id if (in->auth_cap != cap && (!in->auth_cap || ceph_seq_cmp(in->auth_cap->mseq, mseq) < 0)) { if (in->auth_cap && in->flushing_cap_item.is_on_list()) { - ldout(cct, 10) << "add_update_cap changing auth cap: removing myself from flush_caps list" << dendl; - in->flushing_cap_item.remove_myself(); + ldout(cct, 10) << "add_update_cap changing auth cap: " + << "add myself to new auth MDS' flushing caps list" << dendl; + mds_session->flushing_caps.push_back(&in->flushing_cap_item); } in->auth_cap = cap; }