Skip to content

Commit aa1b282

Browse files
authored
Merge pull request rails#49971 from composerinteralia/reaper-thread-name
Name the connection pool reaper thread
2 parents 27c28ce + 8579030 commit aa1b282

File tree

1 file changed

+1
-0
lines changed
  • activerecord/lib/active_record/connection_adapters/abstract/connection_pool

1 file changed

+1
-0
lines changed

activerecord/lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def spawn_thread(frequency)
4343
# Advise multi-threaded app servers to ignore this thread for
4444
# the purposes of fork safety warnings
4545
Thread.current.thread_variable_set(:fork_safe, true)
46+
Thread.current.name = "AR Pool Reaper"
4647
running = true
4748
while running
4849
sleep t

0 commit comments

Comments
 (0)