diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 116971bac7e..fca2ea77e23 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2886,6 +2886,7 @@ void Server::handle_client_readdir(MDRequestRef& mdr) #endif utime_t now = ceph_clock_now(NULL); + mdr->set_mds_stamp(now); mdr->now = ceph_clock_now(g_ceph_context); snapid_t snapid = mdr->snapid; @@ -4404,6 +4405,8 @@ void Server::_link_remote(MDRequestRef& mdr, bool inc, CDentry *dn, CInode *targ assert(g_conf->mds_kill_link_at != 2); + mdr->set_mds_stamp(ceph_clock_now(NULL)); + // add to event mdr->ls = mdlog->get_current_segment(); EUpdate *le = new EUpdate(mdlog, inc ? "link_remote":"unlink_remote"); @@ -5775,6 +5778,9 @@ void Server::handle_client_rename(MDRequestRef& mdr) if (!mdr->more()->slaves.empty() && srci->is_dir()) assert(g_conf->mds_kill_rename_at != 4); + // -- declare now -- + mdr->set_mds_stamp(ceph_clock_now(g_ceph_context)); + // -- prepare journal entry -- mdr->ls = mdlog->get_current_segment(); EUpdate *le = new EUpdate(mdlog, "rename");