30th Sat
[Rails1.2RC1] lock_mutexについて
This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/150
Rails1.1.6で作成したアプリケーションについて、EdgeRailsおよびRails1.2RC1で動作検証したところ、ActiveRecord::Base.lock_mutex/unlock_mutexを使っている場合にエラーが発生するようです。
代わりに次のように書き換えると動作するようです。
#ActiveRecord::Base.lock_mutex ActiveRecord::Base.send :increment_open_transactions #ActiveRecord::Base.unlock_mutex ActiveRecord::Base.send :decrement_open_transactionsこの辺を参考にしました。
This article was migrated from http://rails.office.drecom.jp/takiuchi/archive/150
posted by
genki on Sat 30 Dec 2006 at 23:21 with 0 comments