Procházet zdrojové kódy

HUE-2830 [core] Configuration check to confirm that Mysql engine is InnoDB

krish před 10 roky
rodič
revize
3625cfc
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      desktop/core/src/desktop/conf.py

+ 5 - 0
desktop/core/src/desktop/conf.py

@@ -931,6 +931,11 @@ def validate_mysql_storage():
             FROM information_schema.tables
             WHERE table_schema=DATABASE()''')
 
+        # Promote InnoDB storage engine
+        if innodb_table_count != total_table_count:
+          res.append(('PREFERRED_STORAGE_ENGINE', unicode(_('''We recommend MySQL InnoDB engine over
+                                                        MyISAM which does not support transactions.'''))))
+
         if innodb_table_count != 0 and innodb_table_count != total_table_count:
           res.append(('MYSQL_STORAGE_ENGINE', unicode(_('''All tables in the database must be of the same
                                                         storage engine type (preferably InnoDB).'''))))