mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
e4b46e7af6
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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ha_tina.cc | ||
ha_tina.h | ||
Makefile.am | ||
plug.in | ||
transparent_file.cc | ||
transparent_file.h |