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:
parent
0f30f21436
commit
04424694c3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user