From 13488adf30b3d2db28efd0e371c1e8753f1ac872 Mon Sep 17 00:00:00 2001 From: linbing Date: Fri, 9 Jun 2017 10:14:59 +0800 Subject: [PATCH] osd: the condition of last epoch <= superblock.newest_map epoch has been 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 --- src/osd/OSD.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 72fe11542d0..5d0a73da964 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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); -- 2.39.5