• unknown's avatar
    Fix for bug #29411: deleting from a csv table leads to the table corruption · 558aeb0f
    unknown authored
    Problem: we don't adjust share->rows_recorded and local_saved_data_file_length
    deleting rows from a CSV table, so following table check may fail.
    
    Fix: properly adjust those values.
    
    
    mysql-test/r/csv.result:
      Fix for bug #29411: deleting from a csv table leads to the table corruption
        - test result.
    mysql-test/t/csv.test:
      Fix for bug #29411: deleting from a csv table leads to the table corruption
        - test case.
    storage/csv/ha_tina.cc:
      Fix for bug #29411: deleting from a csv table leads to the table corruption
        - decrement share->rows_recorded in the ha_tina::delete_row().
        - set share->rows_recorded and local_saved_data_file_length to 0 in the 
          ha_tina::delete_all_rows().
        - adjust local_saved_data_file_length after cleaning up in the 
          ha_tina::rnd_end().
    558aeb0f
csv.test 101 KB