mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
7c7eebbab4e860c95e68ba042d4c334e389c6481
The complete() function loops around, waiting for notifications and cleaning up the ring when they happen. However, we also call it opportunistically from produce(), and each time this happens, it starts another loop in the background, leaking memory. Fix by splitting complete() into do_complete(), which doesn't loop, and complete(), which does, and only call do_complete() from the produce() loop.
Description
No description provided
Languages
C++
72.7%
Python
26%
CMake
0.4%
GAP
0.3%
Shell
0.3%