]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDCache: fix mds internal op missing events time 24411/head
authorYanhu Cao <gmayyyha@gmail.com>
Wed, 19 Sep 2018 02:32:48 +0000 (10:32 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 3 Oct 2018 21:08:45 +0000 (23:08 +0200)
Fixes: http://tracker.ceph.com/issues/36114
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
(cherry picked from commit bd6ae6f4e29ac79e5e07373f52099338e6ab5416)

src/mds/MDCache.cc

index cfab20e09cd93aa1f50d1145d45e362d9a31f377..5dddd94e425461f50273f7350393de6eadc99395 100644 (file)
@@ -9279,10 +9279,14 @@ MDRequestRef MDCache::request_start_slave(metareqid_t ri, __u32 attempt, Message
 
 MDRequestRef MDCache::request_start_internal(int op)
 {
+  utime_t now = ceph_clock_now();
   MDRequestImpl::Params params;
   params.reqid.name = entity_name_t::MDS(mds->get_nodeid());
   params.reqid.tid = mds->issue_tid();
-  params.initiated = ceph_clock_now();
+  params.initiated = now;
+  params.throttled = now;
+  params.all_read = now;
+  params.dispatched = now;
   params.internal_op = op;
   MDRequestRef mdr =
       mds->op_tracker.create_request<MDRequestImpl,MDRequestImpl::Params*>(&params);