]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: the condition of last epoch <= superblock.newest_map epoch has been 15590/head
authorlinbing <hawkerous@gmail.com>
Fri, 9 Jun 2017 02:14:59 +0000 (10:14 +0800)
committerlinbing <hawkerous@gmail.com>
Fri, 9 Jun 2017 02:14:59 +0000 (10:14 +0800)
check before we puts diff osdmap to transaction, it's unnecessary to
check it again after that. last and superblock.newest_map does not
be changed during that time.

Signed-off-by: linbing <linbing@t2cloud.net>
src/osd/OSD.cc

index 72fe11542d096c892d62b3ce530d2d3caa85b5ea..5d0a73da964fc57bf7611bea4845b3a3fbcd9f28 100644 (file)
@@ -7527,12 +7527,6 @@ void OSD::handle_osd_map(MOSDMap *m)
     rerequest_full_maps();
   }
 
-  if (last <= superblock.newest_map) {
-    dout(10) << " no new maps here, dropping" << dendl;
-    m->put();
-    return;
-  }
-
   if (superblock.oldest_map) {
     // make sure we at least keep pace with incoming maps
     trim_maps(m->oldest_map, last - first + 1, skip_maps);