• Jan Lindström's avatar
    MDEV-6070: FusionIO: Failure to create a table with ATOMIC_WRITES · 2f46e5b9
    Jan Lindström authored
    option leaves the database in inconsistent state,
    
    Analysis: Problem was that atomic writes variable had incorrect
    type on same places leading to fact that e.g. OFF option was
    not regognized. Furthermore, some error check code was missing
    from both InnoDB and XtraDB engines. Finally, when table is
    created we have already created the .ibd file and if we can't
    set atomic writes it stays there.
    
    Fix: Fix atomic writes variable type to ulint as it should be.
    Fix: Add proper error code checking on os errors on both InnoDB
    and XtraDB
    Fix: Remove the .idb file when atomic writes can't be enabled
    to a new table.
    2f46e5b9
fil0fil.cc 172 KB