Bug #21792 Perl DBD needs to do appropriate initialisation for multithreaded client apps
Submitted: 23 Aug 2006 6:31 Modified: 29 Dec 2006 17:28
Reporter: Arjen Lentz Email Updates:
Status: Closed Impact on me:
Category:Connectors: DBD::mysql ( Perl ) Severity:S3 (Non-critical)
Version: OS:
Assigned to: Jim Winstead CPU Architecture:Any
Tags: dbd, perl

[23 Aug 2006 6:31] Arjen Lentz
There's a race condition, if a multithreaded up uses the client library.
See bug#13099

As Tim's comment there indicates, the issue needs to be dealt with in individual wrappers/apps.

How to repeat:
See bug#13099

Suggested fix:
From Dean: use pthread_once() or mysql_library_init() in dbdimp.c for threaded environments.
[25 Aug 2006 0:54] MySQL Verification Team
Thank you for the bug report.
[29 Dec 2006 17:28] Jim Winstead
Patch committed, will be in the next release (probably 4.01).