components/python/oslo.db/patches/mysql_cluster_support.patch
changeset 6866 4c1935f5ec9a
child 6878 252671ed151a
equal deleted inserted replaced
6865:1cc50ab79b8c 6866:4c1935f5ec9a
       
     1 This patchset is for bug:
       
     2 
       
     3 24409419 Mitaka oslo.db should support MySQL Cluster
       
     4 
       
     5 This fixes the following aspects of Oslo.db:
       
     6 1. Implementation of an oslo.db configuration parameter to specify the MySQL
       
     7    storage engine (mysql_storage_engine).
       
     8 
       
     9 This has not been committed upstream, but has been filed in launchpad:
       
    10 
       
    11 https://bugs.launchpad.net/oslo.db/+bug/1564110
       
    12 
       
    13 
       
    14 --- oslo.db-4.7.0/oslo_db/options.py.orig	2016-08-04 14:14:42.609731178 -0700
       
    15 +++ oslo.db-4.7.0/oslo_db/options.py	2016-08-04 14:42:24.071847993 -0700
       
    16 @@ -48,6 +48,13 @@ database_opts = [
       
    17                      'server-set SQL mode. To use whatever SQL mode '
       
    18                      'is set by the server configuration, '
       
    19                      'set this to no value. Example: mysql_sql_mode='),
       
    20 +    cfg.StrOpt('mysql_storage_engine',
       
    21 +               default='InnoDB',
       
    22 +               help='This configures the MySQL storage engine. '
       
    23 +                    'This allows for OpenStack to support different storage '
       
    24 +                    'engine such as InnoDB, NDB, etc. For MySQL Cluster, '
       
    25 +                    'such as InnoDB, NDB, etc. For MySQL Cluster, set to '
       
    26 +                    'NDBCLUSTER. Example: mysql_storage_engine=NDBCLUSTER'),
       
    27      cfg.IntOpt('idle_timeout',
       
    28                 default=3600,
       
    29                 deprecated_opts=[cfg.DeprecatedOpt('sql_idle_timeout',