mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
Fix valgrind error in HealthMonitor
This commit is contained in:
parent
5311d93c72
commit
ebb60f690b
@ -35,11 +35,10 @@ void HealthMonitor::purgeOutdatedHistory() {
|
||||
auto& count = peerClosedNum[p.second];
|
||||
--count;
|
||||
ASSERT(count >= 0);
|
||||
peerClosedHistory.pop_front();
|
||||
|
||||
if (count == 0) {
|
||||
peerClosedNum.erase(p.second);
|
||||
}
|
||||
peerClosedHistory.pop_front();
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user