Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver/rangefeed: Clear rather than Close memory budget
Clear is similar to Close but also resets the "used" and "reserved" variables. This shouldn't really matter, but recent changes mean that sometimes a budget for a processor might be "closed" before a give registration using that processor's goroutine has finished draining. This is OK since the feed budget is protected by a mutex and allocations releases after close are allowed. However, it did break a test under stress. Epic: none Release note: None
- Loading branch information