From: taodd Date: Sat, 25 Sep 2021 03:56:02 +0000 (+0800) Subject: msg/async/ProtocolV2: Set the recv_stamp at the beginning of receiving a message... X-Git-Tag: v17.1.0~749^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ca30f396bface2a8e95a0efb1b97f8c1b64de1c;p=ceph.git msg/async/ProtocolV2: Set the recv_stamp at the beginning of receiving a message instead of after receiving. Fixes: https://tracker.ceph.com/issues/52739 Signed-off-by: dongdong tao --- diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index 30574c6bd96..3564dafe28e 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -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);