summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2012-12-13 10:52:28 -0800
committerSamuel Just <sam.just@inktank.com>2012-12-13 10:52:52 -0800
commit97cc55d599ea1588af2e73d6972e1c9dfd9a545b (patch)
tree05aec317d6dbfbe07168497b31bf2dcfd1c834ee
parentf2c083efd55b92402535841e424dda3ebd3d39c9 (diff)
downloadceph-97cc55d599ea1588af2e73d6972e1c9dfd9a545b.tar.gz
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 <sam.just@inktank.com>
-rw-r--r--src/osd/OSD.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index 2dedaf4049b..c88dfea4818 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())