Commit e413f026 by Torkel Ödegaard Committed by GitHub

fix: postgres/mysql engine cache was not being used, fixes #12636 (#12642)

parent ce64a3cc
......@@ -63,7 +63,8 @@ datasources:
url: localhost:5432
database: grafana
user: grafana
password: password
secureJsonData:
password: password
jsonData:
sslmode: "disable"
......@@ -74,3 +75,4 @@ datasources:
authType: credentials
defaultRegion: eu-west-2
......@@ -68,6 +68,7 @@ func (e *DefaultSqlEngine) InitEngine(driverName string, dsInfo *models.DataSour
engine.SetMaxOpenConns(10)
engine.SetMaxIdleConns(10)
engineCache.versions[dsInfo.Id] = dsInfo.Version
engineCache.cache[dsInfo.Id] = engine
e.XormEngine = engine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment