mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-27 16:21:48 +03:00
Reset values properly in HTTPPriorityQueue::clear()
Summary: Fixing bug where `HTTPPriorityQueue::clear()` doesn't properly reset `roundRobinElements_` and `lowestRoundRobin_`. Reviewed By: hanidamlaj Differential Revision: D76171861 fbshipit-source-id: fc408471be75e42abda934f79493bb801c2258dc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
be23e87323
commit
d00df1332b
@ -167,6 +167,8 @@ void HTTPPriorityQueue::clear() {
|
||||
for (auto& rr : roundRobins_) {
|
||||
rr.clear();
|
||||
}
|
||||
roundRobinElements_ = 0;
|
||||
lowestRoundRobin_ = roundRobins_.size();
|
||||
}
|
||||
|
||||
const HTTPPriorityQueue::Element* FOLLY_NULLABLE
|
||||
|
Reference in New Issue
Block a user