From 1a0e2f7e1518d57bc07176f4297315a7c9a3c139 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 28 Oct 2018 20:21:53 -0500 Subject: [PATCH] osd: fix heartbeat_reset unlock Fixes 51d8e2457d73c709bfa4f706793696b3ce704ff9, which moved to lock_guard but didn't remove the unlock call on this exit path. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 834083fabe7e..ce3df3145cfc 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4961,7 +4961,6 @@ bool OSD::heartbeat_reset(Connection *con) auto s = con->get_priv(); if (s) { if (is_stopping()) { - heartbeat_lock.Unlock(); return true; } auto heartbeat_session = static_cast(s.get()); -- 2.47.3