Skip to content

Commit

Permalink
mon: trim range_blocklist alongside the regular one
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Farnum <[email protected]>
  • Loading branch information
gregsfortytwo committed Apr 13, 2022
1 parent 8714278 commit 4b08448
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5253,6 +5253,16 @@ void OSDMonitor::tick()
do_propose = true;
}
}
for (auto p = osdmap.range_blocklist.begin();
p != osdmap.range_blocklist.end();
++p) {
if (p->second < now) {
dout(10) << "expiring range_blocklist item " << p->first
<< " expired " << p->second << " < now " << now << dendl;
pending_inc.old_range_blocklist.push_back(p->first);
do_propose = true;
}
}

if (try_prune_purged_snaps()) {
do_propose = true;
Expand Down

0 comments on commit 4b08448

Please sign in to comment.