From: "Yan, Zheng" <zheng.z.yan@xxxxxxxxx> The slaves for two phrase commit should be mdr->more()->witnessed instead of mdr->more()->slaves. mdr->more()->slaves includes MDS for remote auth pin and lock Signed-off-by: Yan, Zheng <zheng.z.yan@xxxxxxxxx> --- src/mds/Server.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index e17f826..6700eda 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -4076,11 +4076,11 @@ void Server::_link_remote(MDRequest *mdr, bool inc, CDentry *dn, CInode *targeti EUpdate *le = new EUpdate(mdlog, inc ? "link_remote":"unlink_remote"); mdlog->start_entry(le); le->metablob.add_client_req(mdr->reqid, mdr->client_request->get_oldest_client_tid()); - if (!mdr->more()->slaves.empty()) { - dout(20) << " noting uncommitted_slaves " << mdr->more()->slaves << dendl; + if (!mdr->more()->witnessed.empty()) { + dout(20) << " noting uncommitted_slaves " << mdr->more()->witnessed << dendl; le->reqid = mdr->reqid; le->had_slaves = true; - mds->mdcache->add_uncommitted_master(mdr->reqid, mdr->ls, mdr->more()->slaves); + mds->mdcache->add_uncommitted_master(mdr->reqid, mdr->ls, mdr->more()->witnessed); } if (inc) { @@ -4655,11 +4655,11 @@ void Server::_unlink_local(MDRequest *mdr, CDentry *dn, CDentry *straydn) EUpdate *le = new EUpdate(mdlog, "unlink_local"); mdlog->start_entry(le); le->metablob.add_client_req(mdr->reqid, mdr->client_request->get_oldest_client_tid()); - if (!mdr->more()->slaves.empty()) { - dout(20) << " noting uncommitted_slaves " << mdr->more()->slaves << dendl; + if (!mdr->more()->witnessed.empty()) { + dout(20) << " noting uncommitted_slaves " << mdr->more()->witnessed << dendl; le->reqid = mdr->reqid; le->had_slaves = true; - mds->mdcache->add_uncommitted_master(mdr->reqid, mdr->ls, mdr->more()->slaves); + mds->mdcache->add_uncommitted_master(mdr->reqid, mdr->ls, mdr->more()->witnessed); } if (straydn) { @@ -5493,13 +5493,13 @@ void Server::handle_client_rename(MDRequest *mdr) EUpdate *le = new EUpdate(mdlog, "rename"); mdlog->start_entry(le); le->metablob.add_client_req(mdr->reqid, mdr->client_request->get_oldest_client_tid()); - if (!mdr->more()->slaves.empty()) { - dout(20) << " noting uncommitted_slaves " << mdr->more()->slaves << dendl; + if (!mdr->more()->witnessed.empty()) { + dout(20) << " noting uncommitted_slaves " << mdr->more()->witnessed << dendl; le->reqid = mdr->reqid; le->had_slaves = true; - mds->mdcache->add_uncommitted_master(mdr->reqid, mdr->ls, mdr->more()->slaves); + mds->mdcache->add_uncommitted_master(mdr->reqid, mdr->ls, mdr->more()->witnessed); } _rename_prepare(mdr, &le->metablob, &le->client_map, srcdn, destdn, straydn); -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html