Bug 5403 - DBD::Pg not thread-safe
: DBD::Pg not thread-safe
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/perl-DBD-Pg)
: unstable
: all Linux
: P2 normal
Assigned To:
:
: http://webushka.pp.ru/dbdpg.tar.gz
:
:
:
  Show dependency tree
 
Reported: 2004-10-27 01:31 by
Modified: 2005-07-13 15:46 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-27 01:31:23
Модуль 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 From 2005-02-03 20:10:35 -------
* 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 From 2005-03-03 01:14:13 -------
* 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)