php - mysql LOCK TABLE - no "commit" of data until UNLOCK -


i have curious problem - have php (5.5.9) script writes mysql (5.6.27) database. pseudocode looks this:

lock table write, b write, ... , c write; -- inserts/updates unlock tables; 

if script runs fine. if stop script half-way operations performed not committed (i not using transactions).

i baffled, thought there no transaction-like logic when comes lock, no other sessions able access tables. can please me understand going on under hood prevent data being persisted in scenario?

thank :)


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -