This project is archived and is in readonly mode.

#6075 ✓resolved
noodl

Pessimistic locking in rails 3.0.3

Reported by noodl | November 27th, 2010 @ 02:34 PM

Trying to use either the lock! method, or the :lock => true argument to finder methods, AR no longer performs a SELECT ... FOR UPDATE query. In all cases I'm calling these methods within the scope of a transaction.

I'm using the mysql2 gem and my app was created only today using rails 3.0.3 and ruby 1.9.2-p0.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages