From 97cc55d599ea1588af2e73d6972e1c9dfd9a545b Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 13 Dec 2012 10:52:28 -0800 Subject: [PATCH] OSD: put connection in disconnect_session_watches as well as the session obc->watchers now has a ref to the connection as well. This piece of disconnect_session_watchers essentially parallels remove_watcher and should generally do the same thing. Signed-off-by: Samuel Just --- src/osd/OSD.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2dedaf4049ba0..c88dfea4818ca 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2463,6 +2463,7 @@ void OSD::disconnect_session_watches(Session *session) << ", expires " << expire << dendl; obc->watchers.erase(witer++); pg->put_object_context(obc); + session->con->put(); session->put(); } if (witer == obc->watchers.end()) -- 2.47.3