Skip to content

Commit

Permalink
Supporting InnoDBParallelReadThreadsCapability (vitessio#17689)
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach authored Feb 4, 2025
1 parent b461dcd commit f880198
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/mysql/capabilities/capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const (
InstantExpandEnumCapability //
InstantChangeColumnVisibilityCapability //
MySQLUpgradeInServerFlavorCapability //
InnoDBParallelReadThreadsCapability // Supported in 8.0.14 and above, introducing innodb_parallel_read_threads variable
DynamicRedoLogCapacityFlavorCapability // supported in MySQL 8.0.30 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-30.html
DisableRedoLogFlavorCapability // supported in MySQL 8.0.21 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-21.html
CheckConstraintsCapability // supported in MySQL 8.0.16 and above: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-16.html
Expand Down Expand Up @@ -100,6 +101,8 @@ func MySQLVersionHasCapability(serverVersion string, capability FlavorCapability
return atLeast(8, 0, 1)
case PerformanceSchemaMetadataLocksTableCapability:
return atLeast(8, 0, 2)
case InnoDBParallelReadThreadsCapability:
return atLeast(8, 0, 14)
case MySQLUpgradeInServerFlavorCapability:
return atLeast(8, 0, 16)
case CheckConstraintsCapability:
Expand Down
15 changes: 15 additions & 0 deletions go/mysql/capabilities/capability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,21 @@ func TestMySQLVersionCapableOf(t *testing.T) {
capability: TransactionalGtidExecutedFlavorCapability,
isCapable: false,
},
{
version: "8.0.13",
capability: InnoDBParallelReadThreadsCapability,
isCapable: false,
},
{
version: "8.0.14",
capability: InnoDBParallelReadThreadsCapability,
isCapable: true,
},
{
version: "8.4.1",
capability: InnoDBParallelReadThreadsCapability,
isCapable: true,
},
{
version: "8.0.30",
capability: DynamicRedoLogCapacityFlavorCapability,
Expand Down

0 comments on commit f880198

Please sign in to comment.