Skip Menu |

This queue is for tickets about the DBIx CPAN distribution.

Report information
The Basics
Id: 73266
Status: open
Priority: 0/
Queue: DBIx

People
Owner: Nobody in particular
Requestors: chuck-bitcard [...] chlarson.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: $sth->finish not called on create exception
When using mysql as database, memory leak occurs when call to method create fails due unique constraint violations. Appears to not call $sth->finish causing a memory leak in underlying mysql library. Example: $hash = {unique_field => 1}: $schema->resultset('test')->create($hash); # Second call to create that causes leak. $schema->resultset('test')->create($hash); # Appears other methods may be affected too, but I'm not that familiar with code in DBIx::Class::Storage::DBI, and perhaps I am missing something. Thanks, Chuck
I'm sorry. What module are you having problems with? The Queue says "DBIx" which isnt a complete module name. On Wed Dec 14 17:41:08 2011, clarson wrote: Show quoted text
> When using mysql as database, memory leak occurs when call to method > create fails due unique constraint violations. Appears to not call > $sth->finish causing a memory leak in underlying mysql library. > > Example: > > $hash = {unique_field => 1}: > $schema->resultset('test')->create($hash); > # Second call to create that causes leak. > $schema->resultset('test')->create($hash); > > # Appears other methods may be affected too, but I'm not that familiar > with code in DBIx::Class::Storage::DBI, and perhaps I am missing
something. Show quoted text
> > Thanks, > Chuck >