Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Avoid a data race when flushing with load (#1261)
Fixes #1258 ### Motivation While flushing, the data channel is switched if a new allocated one which can cause the loss of messages because the length can be zero which would stop the procedure and at the same time a new message can be sent to the channel. ### Modifications Instead of allocating a new channel, it empties the existing one up to the length of the buffer of the channel before proceeding with the flush. (cherry picked from commit 8dd4ed1)
- Loading branch information