This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 1db010bd7 fix: allow 0 idle database connection (#8522)
1db010bd7 is described below

commit 1db010bd789135aa1d077c630b2321ea329cf1f9
Author: Camilo Roca <caro...@unal.edu.co>
AuthorDate: Mon Sep 22 05:40:51 2025 +0200

    fix: allow 0 idle database connection (#8522)
    
    * fix: allow 0 idle database connection
    
    * fix: use default idle conn value if none provided
---
 backend/core/runner/db.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/core/runner/db.go b/backend/core/runner/db.go
index a734ebb29..0e3925942 100644
--- a/backend/core/runner/db.go
+++ b/backend/core/runner/db.go
@@ -60,7 +60,7 @@ func NewGormDbEx(configReader config.ConfigReader, logger 
log.Logger, sessionCon
        }
 
        idleConns := configReader.GetInt("DB_IDLE_CONNS")
-       if idleConns <= 0 {
+       if idleConns == 0 {
                idleConns = 10
        }
        dbMaxOpenConns := configReader.GetInt("DB_MAX_CONNS")

Reply via email to