Unix Technical Forum

locking tables

This is a discussion on locking tables within the MySQL forums, part of the Database Server Software category; --> If I lock a table with write, will another connection be able to read from that table while it's ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:37 AM
Jim Michaels
 
Posts: n/a
Default locking tables

If I lock a table with write, will another connection be able to read from
that table while it's locked? I hope not.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:37 AM
Jim Michaels
 
Posts: n/a
Default Re: locking tables


"Jim Michaels" <NOSPAMFORjmichae3@yahoo.com> wrote in message
news:uo6dnTOfVoLP2tHZnZ2dnUVZ_t6dnZ2d@comcast.com. ..
> If I lock a table with write, will another connection be able to read from
> that table while it's locked? I hope not.
>


I just tried it, I think reads are allowed. ugh. this race condition is
causing grief. Am I technically wrong? I couldn't find anything specific
about this situation in the manual (unfortunately). and there's no way to
lock a table for both read AND write.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com