Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ddl: fix alter table share rowid bit problem #9868
What problem does this PR solve?
There is some problem in share rowid bits. Think about follow situation.
What is changed and how it works?
Then in upper situation, after SHARD_ROW_ID_BITS = 4, TiDB will also use 6 to check allocateAutoID overflow. then the duplicate ID cannot be insert , because the duplicated ID is overflow with MaxShardRowIDBits=6.
Related Parser PR: pingcap/parser#252, Pleaser merge parser first.
@@ Coverage Diff @@ ## master #9868 +/- ## =============================================== - Coverage 78.1391% 78.121% -0.0182% =============================================== Files 405 405 Lines 82005 82033 +28 =============================================== + Hits 64078 64085 +7 - Misses 13231 13248 +17 - Partials 4696 4700 +4