Skip to content
  • Magnus Blåudd's avatar
    a5960aa1
    Bug#31180526 CHANGING TABLESPACE BY INPLACE ALTER CORRUPTION · a5960aa1
    Magnus Blåudd authored
    Changing the tablespace of a table using an inplace alter table fails to
    update NDB dictionary with the new tablespace name and tablespace id.
    Even if an attempt to update the NDB dictionary was made, it would not
    properly move over data to the new tablespace.
    
    Fix by not allowing TABLESPACE to be changed by inplace alter table
    until NDB supports changing tablespace online.
    
    Restrict both cases:
    1) Assigning a table (which does not already has one) to a tablespace
    2) Changing the tablespace of a table
    
    Add printout of tablespace id and name to make them visible in
    for example ndb_desc.
    
    Change-Id: I78c81cb4b5fc460d1f75560c053c3d21a5a2fbc9
    a5960aa1
    Bug#31180526 CHANGING TABLESPACE BY INPLACE ALTER CORRUPTION
    Magnus Blåudd authored
    Changing the tablespace of a table using an inplace alter table fails to
    update NDB dictionary with the new tablespace name and tablespace id.
    Even if an attempt to update the NDB dictionary was made, it would not
    properly move over data to the new tablespace.
    
    Fix by not allowing TABLESPACE to be changed by inplace alter table
    until NDB supports changing tablespace online.
    
    Restrict both cases:
    1) Assigning a table (which does not already has one) to a tablespace
    2) Changing the tablespace of a table
    
    Add printout of tablespace id and name to make them visible in
    for example ndb_desc.
    
    Change-Id: I78c81cb4b5fc460d1f75560c053c3d21a5a2fbc9
Loading