add flushing inode to the new auth MDS' flushing caps list
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
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;
}