• unknown's avatar
    Fix for bug #29253: csv table reportedly marked as crashed · e4b46e7a
    unknown authored
    Problem: the data file changes made during delete/update are not visible to 
    other threads as the file is reopened, so reading data 
    with old descriptors might miss the changes.
    
    Fix: reopen the data file before reading if it was reopened during 
    delete/update to ensure there's no data behind.
    
    Note: there's no simple test case.
    
    
    storage/csv/ha_tina.cc:
      Fix for bug #29253: csv table reportedly marked as crashed
        - use the data file version technic to ensure we always see changes
          made by other threads:
            a) increase share->data_file_version each time we reopen the data 
               file, i.e. at the end of update/delete.
            b) compare the local data file version with the shared one each time 
               we want to read data, reopen it if they differ.
    storage/csv/ha_tina.h:
      Fix for bug #29253: csv table reportedly marked as crashed
        - use the data file version technic to ensure we always see changes
          made by other threads:
            a) increase share->data_file_version each time we reopen the data 
               file, i.e. at the end og update/delete.
            b) compare the local data file version with shared one each time 
               we want to read data, reopen it if they differ.
    e4b46e7a
ha_tina.cc 43.1 KB