Bug 5403 - DBD::Pg not thread-safe
Summary: DBD::Pg not thread-safe
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: perl-DBD-Pg (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: viy
QA Contact: qa-sisyphus
URL: http://webushka.pp.ru/dbdpg.tar.gz
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 01:31 MSD by Andrew Fediushin
Modified: 2005-07-13 15:46 MSD (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fediushin 2004-10-27 01:31:23 MSD
Модуль DBD::Pg невозможно использовать в многопоточной среде.
Возникала ошибка:
thread failed to start: DBD::Pg::dr connect failed: handle 1 is owned by thread
8134e48 not current thread 509b60 (handles can't be shared between threads and
your driver may need a CLONE method added) at
/usr/lib/perl5/vendor_perl/i386-linux/DBI.pm line 595.

Как оказалось из-за отсутствия трёх строчек в исходниках - не реализован метод
CLONE.
Патч, исправляющий это, прилагается.
Также прилагается тест.
Comment 1 at@altlinux.org 2005-02-03 20:10:35 MSK
* Thu Feb 03 2005 Alexey Tourbin <at@altlinux> 1.32-alt3
- added CLONE method for use with threads (Andrew Fediushin, #5403, cpan #11365)
Comment 2 at@altlinux.org 2005-03-03 01:14:13 MSK
* Thu Mar 03 2005 Alexey Tourbin <at@altlinux> 1.40-alt1
- 1.32 -> 1.40
- alt-CLONE.patch merged upstream (Andrew Fediushin, #5403, cpan #11365)