Otherwise it is a pure waste to handle this.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
void Client::handle_mds_map(MMDSMap* m)
{
- if (m->get_epoch() < mdsmap->get_epoch()) {
- ldout(cct, 1) << "handle_mds_map epoch " << m->get_epoch() << " is older than our "
- << mdsmap->get_epoch() << dendl;
+ if (m->get_epoch() <= mdsmap->get_epoch()) {
+ ldout(cct, 1) << "handle_mds_map epoch " << m->get_epoch()
+ << " is identical to or older than our "
+ << mdsmap->get_epoch() << dendl;
m->put();
return;
}