Merge remote-tracking branch 'upstream/main'
This commit is contained in:
@@ -153,15 +153,6 @@ class MySQLPoolWrapper implements ConnectionPoolWrapper {
|
||||
`[${this.dbType.toUpperCase()}] 연결 반환 (${this.activeConnections}/${this.maxConnections})`
|
||||
);
|
||||
});
|
||||
|
||||
// 연결 오류 이벤트 처리
|
||||
this.pool.on("error", (err) => {
|
||||
logger.error(`[${this.dbType.toUpperCase()}] 연결 풀 오류:`, err);
|
||||
// 연결이 닫힌 경우 플래그 설정
|
||||
if (err.message.includes("closed state")) {
|
||||
this.isPoolClosed = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async query(sql: string, params?: any[]): Promise<any> {
|
||||
|
||||
Reference in New Issue
Block a user