This commit is contained in:
lanicc
2021-10-09 14:53:00 +08:00
committed by GitHub
parent 911711248c
commit d79431c7e5
3 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ public class MysqlConnector {
private SocketChannel channel; private SocketChannel channel;
private volatile boolean dumping = false; private volatile boolean dumping = false;
// mysql connectinnId // mysql connectionId
private long connectionId = -1; private long connectionId = -1;
private AtomicBoolean connected = new AtomicBoolean(false); private AtomicBoolean connected = new AtomicBoolean(false);
// serverVersion // serverVersion
@@ -169,7 +169,7 @@ public class MysqlConnector {
} else if (body[0] == -2) { } else if (body[0] == -2) {
throw new IOException("Unexpected EOF packet at handshake phase."); throw new IOException("Unexpected EOF packet at handshake phase.");
} else { } else {
throw new IOException("unpexpected packet with field_count=" + body[0]); throw new IOException("Unexpected packet with field_count=" + body[0]);
} }
} }
HandshakeInitializationPacket handshakePacket = new HandshakeInitializationPacket(); HandshakeInitializationPacket handshakePacket = new HandshakeInitializationPacket();
@@ -273,7 +273,7 @@ public class MysqlConnector {
err.fromBytes(body); err.fromBytes(body);
throw new IOException("Error When doing Client Authentication:" + err.toString()); throw new IOException("Error When doing Client Authentication:" + err.toString());
} else { } else {
throw new IOException("unpexpected packet with field_count=" + body[0]); throw new IOException("Unexpected packet with field_count=" + body[0]);
} }
} }
} }
@@ -304,7 +304,7 @@ public class MysqlConnector {
err.fromBytes(body); err.fromBytes(body);
throw new IOException("Error When doing Client Authentication:" + err.toString()); throw new IOException("Error When doing Client Authentication:" + err.toString());
default: default:
throw new IOException("unpexpected packet with field_count=" + body[0]); throw new IOException("Unexpected packet with field_count=" + body[0]);
} }
} }

View File

@@ -303,7 +303,7 @@ public class MysqlConnection implements ErosaConnection {
err.fromBytes(body); err.fromBytes(body);
throw new IOException("Error When doing Register slave:" + err.toString()); throw new IOException("Error When doing Register slave:" + err.toString());
} else { } else {
throw new IOException("unpexpected packet with field_count=" + body[0]); throw new IOException("Unexpected packet with field_count=" + body[0]);
} }
} }
} }

View File

@@ -149,7 +149,7 @@ public class DirectLogFetcherTest {
err.fromBytes(body); err.fromBytes(body);
throw new IOException("Error When doing Register slave:" + err.toString()); throw new IOException("Error When doing Register slave:" + err.toString());
} else { } else {
throw new IOException("unpexpected packet with field_count=" + body[0]); throw new IOException("Unexpected packet with field_count=" + body[0]);
} }
} }
} }