mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #44903 from rails/interlock
Register the interlock hook only if reloading
This commit is contained in:
commit
dbb065dba9
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ module Rails
|
|||
else
|
||||
# Default concurrency setting: enabled, but safe
|
||||
|
||||
if config.reloading_enabled? || !config.eager_load
|
||||
if config.reloading_enabled?
|
||||
app.executor.register_hook(InterlockHook, outer: true)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue