Commit Graph
2 Commits
Author SHA1 Message Date
Nic BoetandClaude Opus 5.5 6d3e869949 test: have the logger reload test's workers just log
The workers copied what zmDbDo() did before #5197: hold the Logger
pointer across a query and set the database level to NOLOG around it.
#5197 removed that. The workers now fetch and log, as the threads that
still log during a reload do (the dbQueue thread, the stream socket
threads), and the comment names those.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 17:38:07 -05:00
Nic BoetandClaude Opus 5.5 47ac523ed6 test: cover a logger reload while other threads log
Four threads log the way zmDbDo() does (fetch the Logger, change its
database level, log, restore the level) while the main thread reloads the
logger 300 times. With the reload as logTerm(); logInit(), AddressSanitizer
reports a heap-use-after-free; with logReload() the instance stays valid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 18:27:57 -05:00