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>
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);