mariadb/plugin/daemon_example
Daniel Black 1d6502b4f4 MDEV-34534 main.plugin_load(daemon_example) - AddressSanitizer: Joining already joined thread, aborting
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.
2024-11-18 22:35:40 +11:00
..
AUTHORS
ChangeLog
CMakeLists.txt Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
daemon_example.cc MDEV-34534 main.plugin_load(daemon_example) - AddressSanitizer: Joining already joined thread, aborting 2024-11-18 22:35:40 +11:00
daemon_example.ini Cherry-picking WL#5710 from mysql-5.5 to mysql-5.5.16-release. 2011-08-15 18:29:38 +04:00
NEWS
README

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