Skip to content

Commit 59c7328

Browse files
authored
Configure DB Connection Pool Type (#4012)
Sequel changed the default connection pool type, which has not been tested with our extensions. Therefore, configuring the pool type `:threaded`.
1 parent 5f4df6d commit 59c7328

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cloud_controller/db_connection/options_factory.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def base_options(opts)
3737
log_level: opts[:log_level],
3838
max_connections: opts[:max_connections],
3939
pool_timeout: opts[:pool_timeout],
40+
pool_class: :threaded,
4041
read_timeout: opts[:read_timeout],
4142
sql_mode: %i[strict_trans_tables strict_all_tables no_zero_in_date]
4243
}

0 commit comments

Comments
 (0)