This breaks ref cycles between the local_connection and session, and let's
us drop the explicit set_priv() calls in OSD::shutdown().
Signed-off-by: Sage Weil <sage@redhat.com>
ldout(cct,10) << "shutdown " << get_myaddr() << dendl;
mark_down_all();
dispatch_queue.shutdown();
+
+ // break ref cycles on the loopback connection
+ local_connection->set_priv(NULL);
return 0;
}
service.shutdown();
op_tracker.on_shutdown();
- // zap the Sessions for any loopback Connections
- client_messenger->get_loopback_connection()->set_priv(NULL);
- cluster_messenger->get_loopback_connection()->set_priv(NULL);
-
class_handler->shutdown();
client_messenger->shutdown();
cluster_messenger->shutdown();