Fix ring buffer overflow due to missed keys
This commit is contained in:
+1
-3
@@ -97,9 +97,7 @@ int ring_putc(struct thread *ctx, struct ring *ring, char c, int wait) {
|
||||
|
||||
ring->base[ring->wr] = c;
|
||||
ring_advance_write(ring);
|
||||
if (ring->flags & RING_RAW) {
|
||||
thread_notify_io(&ring->wait);
|
||||
}
|
||||
thread_notify_io(&ring->wait);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user