Re: Handling locked db tables...

2008-02-23 Thread M.-A. Lemburg
On 2008-02-20 17:19, breal wrote: > On Feb 20, 8:05 am, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >> On 2008-02-20 16:24, breal wrote: >> >>> I have a db table that holds a list of ports. There is a column >>> in_use that is used as a flag for whether the port is currently in >>> use. When choos

Re: Handling locked db tables...

2008-02-21 Thread John Nagle
breal wrote: > Thanks for the reply. I understand that this is normal locking > behavior. What I am looking for is a standard method to either loop > the query until the table is unlocked, or put the query into some sort > of queue. Basically my queries work like this. > > Request comes in >

Re: Handling locked db tables...

2008-02-20 Thread Larry Bates
breal wrote: > On Feb 20, 8:05 am, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: >> On 2008-02-20 16:24, breal wrote: >> >>> I have a db table that holds a list of ports. There is a column >>> in_use that is used as a flag for whether the port is currently in >>> use. When choosing a port the table

Re: Handling locked db tables...

2008-02-20 Thread breal
On Feb 20, 8:05 am, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > On 2008-02-20 16:24, breal wrote: > > > I have a db table that holds a list of ports. There is a column > > in_use that is used as a flag for whether the port is currently in > > use. When choosing a port the table is read and the f

Re: Handling locked db tables...

2008-02-20 Thread M.-A. Lemburg
On 2008-02-20 16:24, breal wrote: > I have a db table that holds a list of ports. There is a column > in_use that is used as a flag for whether the port is currently in > use. When choosing a port the table is read and the first available > port with in_use = 0 is used, updated to in_use = 1, use

Handling locked db tables...

2008-02-20 Thread breal
I have a db table that holds a list of ports. There is a column in_use that is used as a flag for whether the port is currently in use. When choosing a port the table is read and the first available port with in_use = 0 is used, updated to in_use = 1, used, then updated to in_use = 0. I am using