mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
docs(rds): clarify zstd IAM DDL passthrough (#8155)
This commit is contained in:
1 parent
83e12f1191
commit
6ef4ad536b
2 files changed
+16
-11
No files matched your search
@@ -11,7 +11,10 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.zip.InflaterInputStream;
|
||||
|
||||
/** Rewrites IAM user DDL without making compressed MySQL clients wait for the next command. */
|
||||
/**
|
||||
* Rewrites IAM user DDL for zlib-negotiated clients without waiting for the next command.
|
||||
* Zstd-negotiated frames pass through unchanged.
|
||||
*/
|
||||
final class MySqlCompressedCommandRelay {
|
||||
|
||||
private static final int MAX_PACKET_PAYLOAD = 0xFFFFFF;
|
||||
@@ -283,10 +286,6 @@ final class MySqlCompressedCommandRelay {
|
||||
return true;
|
||||
}
|
||||
|
||||
private static int skipIgnored(byte[] bytes, int offset) {
|
||||
return skipIgnored(bytes, offset, bytes.length);
|
||||
}
|
||||
|
||||
private static int skipIgnored(byte[] bytes, int offset, int limit) {
|
||||
while (offset < limit) {
|
||||
if (isSqlSpace(bytes[offset])) {
|
||||
|
||||
Reference in new issue
Block a user