Index: modules/system/system.install =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.install,v retrieving revision 1.471 diff -u -r1.471 system.install --- modules/system/system.install 3 Jun 2010 13:20:05 -0000 1.471 +++ modules/system/system.install 3 Jun 2010 18:08:20 -0000 @@ -164,6 +164,26 @@ $requirements['database_extensions']['value'] = $t('Enabled'); } + // Check InnoDB configuration. + if ($phase == 'runtime' && db_driver() == 'mysql') { + + $variable = db_query("SHOW VARIABLES LIKE 'innodb_flush_log_at_trx_commit'") + ->fetchAssoc(); + + if ($variable == array( + 'variable_name' => 'innodb_flush_log_at_trx_commit', + 'value' => 1, + )) + { + $requirements['innodb_flush_log_at_trx_commit'] = array( + 'title' => $t('InnoDB configuration'), + 'value' => $t('Unsupported'), + 'description' => $t('InnoDB variable innodb_flush_log_at_trx_commit is set to 1. This will significantly reduce performance as a disk flush is performed after every database write.'), + 'severity' => REQUIREMENT_WARNING, + ); + } + } + // Test PHP memory_limit $memory_limit = ini_get('memory_limit'); $requirements['php_memory_limit'] = array(