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
Category:DBD::mysql Severity:S3 (Non-critical)
Version: OS:
Assigned to: Jim Winstead Target Version:
Tags: perl, dbd

[23 Aug 2006 6:31] Arjen Lentz
Description:
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] Miguel Solorzano
Thank you for the bug report.
[29 Dec 2006 17:28] Jim Winstead
Patch committed, will be in the next release (probably 4.01).