File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
common/src/main/kotlin/com/github/zly2006/xbackup Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import org.jetbrains.exposed.dao.id.IntIdTable
1010import org.jetbrains.exposed.sql.*
1111import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq
1212import org.jetbrains.exposed.sql.json.json
13+ import org.jetbrains.exposed.sql.transactions.TransactionManager
1314import org.jetbrains.exposed.sql.transactions.experimental.newSuspendedTransaction
1415import org.jetbrains.exposed.sql.transactions.transaction
1516import org.slf4j.LoggerFactory
@@ -687,6 +688,7 @@ class BackupDatabaseService(
687688
688689 fun close () {
689690 syncExecutor.close()
691+ TransactionManager .closeAndUnregister(database)
690692 }
691693
692694 companion object {
Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ class Config {
7777 @SerialName(" blob_path" )
7878 val blobPath = " blob"
7979
80+ @SerialName(" independent_blobs" )
81+ val independentBlobs = false
82+
8083 @SerialName(" backup_interval" )
8184 var backupInterval = 10800
8285
You can’t perform that action at this time.
0 commit comments