Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: table locking with forking

From: John Trammell <johnt(at)holmescorp.com>
Date: Wed Sep 19 2007 - 12:19:42 EDT


> -----Original Message-----
> From: Jeremy Kister [mailto:perl-mysql@jeremykister.com]
> Sent: Tuesday, September 18, 2007 11:44 PM
> To: perl@lists.mysql.com
> Subject: table locking with forking
>
> I'm having issues with locking and forking code. I've consolidated the
> problem into the below example code.

I played around with this, and came up with the attached code. The key was using InnoDB with commit() in the right place.

I don't understand the behavior of the original script; it looks like the INSERT from the child process gets queued up by MySQL, and the killing of the child doesn't affect it.

-- 
MySQL Perl Mailing List
For list archives: 
http://lists.mysql.com/perl
To unsubscribe:    
http://lists.mysql.com/perl?unsub=lists@pantek.com
Received on Wed Sep 19 12:20:47 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:15:36 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library