mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-21 10:45:59 +10:00
[강운덕] [PROFILER-34] regex precompile코드 제거. 많이 호출되는 않는 api라 그냥 안하는게 좋을듯함.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@3995 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
+2
-2
@@ -19,7 +19,6 @@ public class MySqlConnectionStringParser implements ConnectionStringParser {
|
||||
|
||||
// jdbc:mysql:loadbalance://10.25.149.62:3306,10.25.149.61:3306/MySQL?characterEncoding=UTF-8
|
||||
private static final String JDBC_MYSQL_LOADBALANCE = "jdbc:mysql:loadbalance:";
|
||||
private static Pattern COMMA_SPLIT = Pattern.compile(",");
|
||||
|
||||
@Override
|
||||
public DatabaseInfo parse(String url) {
|
||||
@@ -41,7 +40,8 @@ public class MySqlConnectionStringParser implements ConnectionStringParser {
|
||||
// mm db? 의 경우도 고려해야 될듯하다.
|
||||
String host = maker.after("//").before('/').value();
|
||||
|
||||
String[] parsedHost = COMMA_SPLIT.split(host);
|
||||
// regex cache코드 삭제. 자주 호출되는 api가 아니라 메모리에 안가지고있는게 좋을듯함하다.
|
||||
String[] parsedHost = host.split(",");
|
||||
List<String> hostList = Arrays.asList(parsedHost);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user