mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storage: remove sqlstore.WrapDatabaseDriverWithHooks (#92111)
remove sqlstore.WrapDatabaseDriverWithHooks from Unified Storage after related incident
This commit is contained in:
parent
2e60f28044
commit
9a65d0a977
@ -8,7 +8,6 @@ import (
|
||||
|
||||
"github.com/go-sql-driver/mysql"
|
||||
"github.com/grafana/grafana/pkg/infra/tracing"
|
||||
"github.com/grafana/grafana/pkg/services/sqlstore"
|
||||
"github.com/grafana/grafana/pkg/storage/unified/sql/db"
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
@ -107,8 +106,7 @@ func getEnginePostgres(getter *sectionGetter, tracer tracing.Tracer) (*xorm.Engi
|
||||
}
|
||||
|
||||
// FIXME: get rid of xorm
|
||||
driverName := sqlstore.WrapDatabaseDriverWithHooks(db.DriverPostgres, tracer)
|
||||
engine, err := xorm.NewEngine(driverName, dsn)
|
||||
engine, err := xorm.NewEngine(db.DriverPostgres, dsn)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("open database: %w", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user