You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by to...@apache.org on 2022/06/09 03:40:49 UTC

[shardingsphere] branch master updated: Fix typo in MySQLServerInfo (#18253)

This is an automated email from the ASF dual-hosted git repository.

totalo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new b3e340b61ed Fix typo in MySQLServerInfo (#18253)
b3e340b61ed is described below

commit b3e340b61ed347a1a20493bcc51153a41e886a98
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Thu Jun 9 11:40:42 2022 +0800

    Fix typo in MySQLServerInfo (#18253)
---
 .../shardingsphere/db/protocol/mysql/constant/MySQLServerInfo.java   | 5 ++---
 .../shardingsphere/proxy/frontend/mysql/MySQLFrontendEngine.java     | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/constant/MySQLServerInfo.java b/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/constant/MySQLServerInfo.java
index f62ca0ba7b7..9bd8aaa796e 100644
--- a/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/constant/MySQLServerInfo.java
+++ b/shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/constant/MySQLServerInfo.java
@@ -19,12 +19,11 @@ package org.apache.shardingsphere.db.protocol.mysql.constant;
 
 import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
+import org.apache.shardingsphere.db.protocol.CommonConstants;
 
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
-import org.apache.shardingsphere.db.protocol.CommonConstants;
-
 /**
  * ShardingSphere-Proxy's information for MySQL.
  */
@@ -72,7 +71,7 @@ public final class MySQLServerInfo {
      * 
      * @param defaultMysqlVersion default mysql version
      */
-    public static void setDefualtMysqlVersion(final String defaultMysqlVersion) {
+    public static void setDefaultMysqlVersion(final String defaultMysqlVersion) {
         MySQLServerInfo.defaultMysqlVersion = defaultMysqlVersion;
     }
     
diff --git a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/MySQLFrontendEngine.java b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/MySQLFrontendEngine.java
index 66feb4df493..20d586487d9 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/MySQLFrontendEngine.java
+++ b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/MySQLFrontendEngine.java
@@ -48,7 +48,7 @@ public final class MySQLFrontendEngine implements DatabaseProtocolFrontendEngine
     private final DatabasePacketCodecEngine<MySQLPacket> codecEngine = new MySQLPacketCodecEngine();
     
     public MySQLFrontendEngine() {
-        MySQLServerInfo.setDefualtMysqlVersion(ProxyContext.getInstance()
+        MySQLServerInfo.setDefaultMysqlVersion(ProxyContext.getInstance()
                 .getContextManager().getMetaDataContexts().getMetaData().getProps().<String>getValue(ConfigurationPropertyKey.PROXY_MYSQL_DEFAULT_VERSION));
     }