From 9865bb460bfa0b992b4a5c3466cdfde7b56aed86 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 30 May 2013 22:12:04 -0700 Subject: [PATCH] osd: reset heartbeat peers during shutdown This fixes a leak of the Connection's and related structures. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index d7d56c3162fb..d54ecc16b62d 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1393,6 +1393,8 @@ int OSD::shutdown() osd_lock.Lock(); + reset_heartbeat_peers(); + tick_timer.shutdown(); // note unmount epoch -- 2.47.3