osd: fix Connection leaks

Messenger::get_connection() returns a reference.  Put it.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-11-29 11:11:17 -08:00
parent e18f9ee844
commit a87361ef30

View File

@ -4703,6 +4703,7 @@ void OSD::do_notifies(
service.send_message_osd_cluster(it->first, m, curmap->get_epoch());
}
}
con->put();
}
}
@ -4740,6 +4741,7 @@ void OSD::do_queries(map< int, map<pg_t,pg_query_t> >& query_map,
service.send_message_osd_cluster(who, m, curmap->get_epoch());
}
}
con->put();
}
}
@ -4776,6 +4778,7 @@ void OSD::do_infos(map<int,vector<pair<pg_notify_t, pg_interval_map_t> > >& info
service.send_message_osd_cluster(p->first, m, curmap->get_epoch());
}
}
con->put();
}
info_map.clear();
}