]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix double-free on old MOSDBoot
authorSage Weil <sage@redhat.com>
Tue, 19 Aug 2014 23:43:02 +0000 (16:43 -0700)
committerSage Weil <sage@redhat.com>
Wed, 27 Aug 2014 21:34:44 +0000 (14:34 -0700)
send_latest() does an m->put().

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 0c051660afd6dfeaff0b6382708f5c7d78cee75f..268bee849bf290f52411f4b864561328a619cbdf 100644 (file)
@@ -1290,7 +1290,7 @@ bool OSDMonitor::preprocess_boot(MOSDBoot *m)
       osdmap.get_info(from).up_from > m->version) {
     dout(7) << "prepare_boot msg from before last up_from, ignoring" << dendl;
     send_latest(m, m->sb.current_epoch+1);
-    goto ignore;
+    return true;
   }
 
   // noup?