1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 23:02:17 +00:00

mon: fix monmap update

It's on the stack; update in place.

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-11-11 12:05:01 -08:00
parent 1134fdfe78
commit 6c663d855e

View File

@ -360,8 +360,7 @@ void Monitor::handle_probe_reply(MMonProbe *m)
if (newmap->get_epoch() > monmap->get_epoch()) {
dout(10) << " got new monmap epoch " << newmap->get_epoch()
<< " > my " << monmap->get_epoch() << dendl;
delete monmap;
monmap = newmap;
monmap->decode(m->monmap_bl);
m->put();
bootstrap();