]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/ProtocolV2: Set the recv_stamp at the beginning of receiving a message...
authortaodd <dongdong.tao@canonical.com>
Sat, 25 Sep 2021 03:56:02 +0000 (11:56 +0800)
committertaodd <dongdong.tao@canonical.com>
Mon, 27 Sep 2021 06:27:13 +0000 (14:27 +0800)
Fixes: https://tracker.ceph.com/issues/52739
Signed-off-by: dongdong tao <dongdong.tao@canonical.com>
src/msg/async/ProtocolV2.cc

index 30574c6bd968eda43ec0c8799bec235cace6a592..3564dafe28ee0137be7bf7202b544002816eb09c 100644 (file)
@@ -1116,6 +1116,7 @@ CtPtr ProtocolV2::handle_read_frame_preamble_main(rx_buffer_t &&buffer, int r) {
       lderr(cct) << __func__ << " not in ready state!" << dendl;
       return _fault();
     }
+    recv_stamp = ceph_clock_now();
     state = THROTTLE_MESSAGE;
     return CONTINUE(throttle_message);
   } else {
@@ -1351,7 +1352,6 @@ CtPtr ProtocolV2::handle_message() {
 #if defined(WITH_EVENTTRACE)
   utime_t ltt_recv_stamp = ceph_clock_now();
 #endif
-  recv_stamp = ceph_clock_now();
 
   const size_t cur_msg_size = get_current_msg_size();
   auto msg_frame = MessageFrame::Decode(rx_segments_data);