mirror of
https://github.com/ceph/ceph
synced 2025-01-10 05:00:59 +00:00
mon/OSDMonitor: avoid duplicated calls when determining osdmap boundary
We have caculdated the oldest/newest map epochs already, so we can use it directly here. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
4f5d588bed
commit
3d12241e3b
@ -1483,8 +1483,8 @@ bool OSDMonitor::preprocess_get_osdmap(MonOpRequestRef op)
|
||||
int r = get_version(e, reply->incremental_maps[e]);
|
||||
assert(r >= 0);
|
||||
}
|
||||
reply->oldest_map = get_first_committed();
|
||||
reply->newest_map = osdmap.get_epoch();
|
||||
reply->oldest_map = first;
|
||||
reply->newest_map = last;
|
||||
mon->send_reply(op, reply);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user