This project is archived and is in readonly mode.
[PATCH] Return processing lock to dispatcher. This fixes class reloading race in development mode
Reported by Aliaksey Kandratsenka | October 4th, 2008 @ 03:30 PM | in 2.x
The problem is that even if concurrency is turned off, class reloading in development mode is not guarded by any lock.
This causes errors like this 'NameError: uninitialized constant ActionController' because classes are being reloaded while action tries to make use of them
Also available here http://github.com/alk/rails/comm...
Comments and changes to this ticket
-
Aliaksey Kandratsenka October 4th, 2008 @ 05:18 PM
- Tag changed from activerecord, patch, race to actionpack, patch, race
Uploading new patch which doesn't remove allow_concurrency flag
-
Repository October 4th, 2008 @ 05:37 PM
- State changed from new to committed
(from [b437a7d34e86c16a211171d491e805b603f0dc99]) Return processing lock to dispatcher, the finer grained lock was incompatible with the reloading in development mode.
This commit also adds ActionController::Dispatcher#dispatch_unlocking -- non-locking version of dispatch. It's named anologously to POSIX {getc,getchar,...}_unlocked functions.
Signed-off-by: Michael Koziarski michael@koziarski.com [#1170 state:committed] http://github.com/rails/rails/co...
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
Attachments
Tags
Referenced by
- 1170 [PATCH] Return processing lock to dispatcher. This fixes class reloading race in development mode Signed-off-by: Michael Koziarski michael@koziarski.com [#...