mattiasflodin/reckless

Thread-local buffer size in existing threads is not adjusted on close+reopen

Closed this issue · 1 comments

If you create a log object and open it with a thread_input_buffer_size value of X, perform some logging, close the log, and reopen it with a new value Y for thread_input_buffer size, then the existing thread-local buffer sizes are not adjusted to match the new size. The size is only taken into account when the thread-local buffer is accessed for the first time.

Creating a new log object is fine, as this allocates a new TLS variable.

Resolved in 3.0.0