You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
This mitigates upstream bug: http://bugs.mysql.com/3083
User name length limit of 16 was too short, so made it 80.
80 is effectively the limit without making additional changes
because of MyISAM's 1000 byte limit on key length and the
primary key of mysql.columns_priv. To compute the size of
the key for that table, the lengths of the char fields are
summed and then multipled by 3, resulting in a limit on the
max size of user name lengths being 81 characters.
Test Plan:
Added long user names to basic grant and replication tests.
Did full build and test run without perfschema, no failures.
Did full build and test run with perfschema, no new failures.
Jenkins both 'arc unit', and 'arc unit --everything', pass
Built a test rpm, ran it through rpm tests, passed.
Installed the test rpm on a test server, then downgraded it:
"use mysql; show create table user;", and got:
* Before upgrade: "...`User` char(16)..."
* After upgrade: "...`User` char(16)..."
* After restart: "...`User` char(16)..."
* After running mysql_upgrade: "...`User` char(80)..."
* After downgrade: "...`User` char(80)..."
* After restart: "...`User` char(80)..."
* After running mysql_upgrade: "...`User` char(16)..."
Reviewers: rudradevbasak, jtolmer, chip, santoshb
Reviewed By: santoshb
0 commit comments