mirror of
https://github.com/MariaDB/server.git
synced 2025-04-18 21:44:20 +03:00
Joining with a thread that has previously been joined results in undefined behavior. This example plugin performs the same join to the same thread a few lines later. ASAN keeps track of this and fails. Make the behaviour defined by joining only once. Thanks Vladislav Vaintroub for looking up the behaviour. While here; * init/deinit function argument was actually used. * correct code comments * attribute define not needed Thanks Marko Mäkelä for review and suggesting other fixes.
Hi! This is an example of a daemon plugin. These are generic plugins that only hook ino the startup and shutdown of the database. Cheers, -Brian Seattle, WA