summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-07-05 11:55:06 +0500
committerunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-07-05 11:55:06 +0500
commit558aeb0f0bfd83726ffe84f5739c0317df48980c (patch)
tree3f66f5e61fc025c642ab1bd7a6ce7d6e83813072 /sql/sql_repl.cc
parentbd8b9746bfbb620b0f37d030169e2ae459aec4de (diff)
downloadmariadb-git-558aeb0f0bfd83726ffe84f5739c0317df48980c.tar.gz
Fix for bug #29411: deleting from a csv table leads to the table corruption
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().
Diffstat (limited to 'sql/sql_repl.cc')
0 files changed, 0 insertions, 0 deletions