fix: sql instrumentation dual registration error (#89508)

fix dual registration error
This commit is contained in:
Kristin Laemmert
2024-06-20 14:45:39 -04:00
committed by GitHub
parent 880c180424
commit d988f5c3b0
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (ss *SQLStore) initReadOnlyEngine(engine *xorm.Engine) error {
ss.dbCfg = dbCfg
if ss.cfg.DatabaseInstrumentQueries {
ss.dbCfg.Type = WrapDatabaseDriverWithHooks(ss.dbCfg.Type, ss.tracer)
ss.dbCfg.Type = WrapDatabaseReplDriverWithHooks(ss.dbCfg.Type, ss.tracer)
}
if engine == nil {