mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
loadVersionComment() add logger.warn info (#4943)
This commit is contained in:
@@ -578,8 +578,10 @@ public class MysqlConnection implements ErosaConnection {
|
||||
rs = query("select @@version_comment");
|
||||
List<String> columnValues = rs.getFieldValues();
|
||||
if (columnValues != null && columnValues.size() >= 1 && columnValues.get(0) != null){
|
||||
logger.warn("--> loadVersionComment(), select @@version_comment : " + columnValues.get(0));
|
||||
if(StringUtils.containsIgnoreCase(columnValues.get(0),"Percona")){
|
||||
compatiablePercona = true;
|
||||
logger.warn("--> loadVersionComment(), set compatiablePercona = true");
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
|
||||
Reference in New Issue
Block a user