]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix osd epoch in boot check 1656/head
authorSage Weil <sage@inktank.com>
Fri, 11 Apr 2014 21:32:21 +0000 (14:32 -0700)
committerSage Weil <sage@inktank.com>
Fri, 11 Apr 2014 21:32:21 +0000 (14:32 -0700)
This was introduced in 4c99e978a77a242e540cb8ccacb967d24322416c and was
incorrect; boot_epoch is the previous epoch the osd booted in, not the
latest map epoch that the OSD currently has.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc

index ae00fbc7ad679f32e120df3b19f1f28829411a4b..784e875f5c85e07222508d139f6bec87fc98ab5d 100644 (file)
@@ -1208,7 +1208,7 @@ bool OSDMonitor::preprocess_boot(MOSDBoot *m)
   }
 
   if (osdmap.exists(from) &&
-      osdmap.get_info(from).up_from > m->boot_epoch) {
+      osdmap.get_info(from).up_from > m->version) {
     dout(7) << "prepare_boot msg from before last up_from, ignoring" << dendl;
     goto ignore;
   }