mirror of
https://github.com/gotson/komga.git
synced 2026-04-22 06:50:51 +02:00
refactor: better logging for sqlite pools
This commit is contained in:
parent
f743aaef17
commit
6a51f3483a
1 changed files with 2 additions and 2 deletions
|
|
@ -17,11 +17,11 @@ class DataSourcesConfiguration(
|
|||
@Bean("sqliteDataSource")
|
||||
@Primary
|
||||
fun sqliteDataSource(): DataSource =
|
||||
buildDataSource("SqliteUdfPool", SqliteUdfDataSource::class.java, komgaProperties.database)
|
||||
buildDataSource("SqliteMainPool", SqliteUdfDataSource::class.java, komgaProperties.database)
|
||||
|
||||
@Bean("tasksDataSource")
|
||||
fun tasksDataSource(): DataSource =
|
||||
buildDataSource("SqliteTaskPool", SQLiteDataSource::class.java, komgaProperties.tasksDb)
|
||||
buildDataSource("SqliteTasksPool", SQLiteDataSource::class.java, komgaProperties.tasksDb)
|
||||
.apply {
|
||||
// force pool size to 1 for tasks datasource
|
||||
this.maximumPoolSize = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue