]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD: use first_tx to calculate failed_for
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 8 Jan 2018 02:24:09 +0000 (10:24 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 31 Jul 2018 12:58:52 +0000 (20:58 +0800)
If we never hear any replies from a heartbeat peer, use first_tx
to calculdate failed_for, which is more accurate.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSD.cc

index a6bfada5fd9c2c7382051586ef2f77656683f1d9..86e06dd561995b1b6adca5fe686b617f5b7d02a8 100644 (file)
@@ -4651,7 +4651,7 @@ void OSD::heartbeat_check()
              << " (oldest deadline " << oldest_deadline << ")"
              << dendl;
        // fail
-       failure_queue[p->first] = p->second.last_tx;
+       failure_queue[p->first] = p->second.first_tx;
       } else {
        derr << "heartbeat_check: no reply from "
              << p->second.con_front->get_peer_addr().get_sockaddr()