1
0
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:
Joanna Jo
2025-06-09 16:14:22 -07:00
committed by Facebook GitHub Bot
parent be23e87323
commit d00df1332b
2 changed files with 12 additions and 0 deletions

View File

@ -167,6 +167,8 @@ void HTTPPriorityQueue::clear() {
for (auto& rr : roundRobins_) {
rr.clear();
}
roundRobinElements_ = 0;
lowestRoundRobin_ = roundRobins_.size();
}
const HTTPPriorityQueue::Element* FOLLY_NULLABLE