1
0
Fork 0
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:
Xavier Noria 2022-04-25 18:26:16 +02:00 committed by GitHub
commit dbb065dba9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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