Refactor InnoDB file format retrieval logic

Simplified retrieval of InnoDB file format by removing unnecessary version check.

Signed-off-by: Guido Selva guido.selva@gmail.com
This commit is contained in:
GS 2026-03-31 17:37:12 +02:00 committed by GitHub
parent 0f30f21436
commit 04424694c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -519,11 +519,7 @@ class Operations
/** @var Innodb $innodbEnginePlugin */
$innodbEnginePlugin = StorageEngine::getEngine('Innodb');
$innodbPluginVersion = $innodbEnginePlugin->getInnodbPluginVersion();
$innodb_file_format = '';
if (! empty($innodbPluginVersion)) {
$innodb_file_format = $innodbEnginePlugin->getInnodbFileFormat() ?? '';
}
$innodb_file_format = $innodbEnginePlugin->getInnodbFileFormat();
/**
* Newer MySQL/MariaDB always return empty a.k.a '' on $innodb_file_format otherwise