mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
mds: unify two if blocks with identical checks
This commit is contained in:
parent
c99c857135
commit
142224193f
@ -698,10 +698,8 @@ void MDSMonitor::tick()
|
||||
si.inc = ++pending_mdsmap.inc[info.rank];
|
||||
pending_mdsmap.up[info.rank] = sgid;
|
||||
pending_mdsmap.last_failure = pending_mdsmap.epoch;
|
||||
}
|
||||
|
||||
if (si.state > 0) {
|
||||
// blacklist
|
||||
// blacklist laggy mds
|
||||
utime_t until = now;
|
||||
until += g_conf.mds_blacklist_interval;
|
||||
mon->osdmon()->blacklist(info.addr, until);
|
||||
|
Loading…
Reference in New Issue
Block a user