Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

groe's latest activity

Friday, February 25 2011
6468 Caching of Exclusive Row Lock Requests by ActiveRecord was updated in Ruby on Rails
  • groe
    groe commented at 12:10 PM
  • groe
    groe commented at 12:01 PM

    My temporary fix:

    config/lock_caching.rb

    class ActiveRecord::Base
      def lock!(lock=true)
        self.class.uncached do
          self.reload(:lock => lock) unless new...
  • groe
    groe created the ticket at 11:17 AM

    Hello,

    I guess this is an unexpected behaviour or even a bug.

    Calling

    Model1.find(1, :lock => true)
    Model1.find(1, :lock => true)

    results in

    Model1 Load (0.2ms)...