• Jan Lindström's avatar
    Enhancement: Change atomic_writes table option to enum type. Now every file... · ec825721
    Jan Lindström authored
    Enhancement: Change atomic_writes table option to enum type. Now every file can either use atomic writes, not use it or use default.
    
    SYNTAX: ATOMIC_WRITES=['DEFAULT','ON','OFF']
    
    Idea here is to be able to define innodb_doublewrite = 1 but with following rules:
    
    ATOMIC_WRITES='DEFAULT' - if innodb_use_atomic_writes = 1, we do not write to doublewrite buffer the changes
                              if innodb_use_atomic_writes = 0, we write to doublewrite buffer
    ATOMIC_WRITES='ON'      - do not write to doublewrite buffer
    ATOMIC_WRITES='OFF'     - write to doublewrite buffer
    
    Note that doublewrite buffer can't be used if innodb_doublewrite = 0.
    
    ec825721
fsp0fsp.h 30.9 KB