Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/service/inbound.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/service/inbound.go b/web/service/inbound.go
index 4c0b344a..414d5945 100644
--- a/web/service/inbound.go
+++ b/web/service/inbound.go
@@ -2091,6 +2091,9 @@ func (s *InboundService) MigrationRequirements() {
defer func() {
if err == nil {
tx.Commit()
+ if dbErr := db.Exec(`VACUUM "main"`).Error; dbErr != nil {
+ logger.Warningf("VACUUM failed: %v", dbErr)
+ }
} else {
tx.Rollback()
}