[xorm] Rmove engine group (#60761)

This commit is contained in:
ying-jeanne
2022-12-26 05:32:51 -05:00
committed by GitHub
parent 572e5a76ef
commit 33dbbbad6b
6 changed files with 10 additions and 355 deletions
+1 -7
View File
@@ -50,13 +50,7 @@ func (session *Session) queryRows(sqlStr string, args ...interface{}) (*core.Row
}
if session.isAutoCommit {
var db *core.DB
if session.sessionType == groupSession {
db = session.engine.engineGroup.Slave().DB()
} else {
db = session.DB()
}
db := session.DB()
if session.prepareStmt {
// don't clear stmt since session will cache them
stmt, err := session.doPrepare(db, sqlStr)