diff options
author | unknown <istruewing@chilla.local> | 2007-08-01 11:54:24 +0200 |
---|---|---|
committer | unknown <istruewing@chilla.local> | 2007-08-01 11:54:24 +0200 |
commit | 4158e75ded1e6ac0adcca94b83dd4db62d09f3eb (patch) | |
tree | e3850903c06ab86624b3d5925cf3063021e7baec /server-tools/instance-manager/CMakeLists.txt | |
parent | 79073ea7923394a2cecdb0f3161a0a505a12510a (diff) | |
download | mariadb-git-4158e75ded1e6ac0adcca94b83dd4db62d09f3eb.tar.gz |
Bug#29838 - myisam corruption using concurrent select ... and update
When using concurrent insert with parallel index reads, it could
happen that reading sessions found keys that pointed to records
yet to be written to the data file. The result was a report of
a corrupted table. But it was false alert.
When inserting a record in a table with indexes, the keys are
inserted into the indexes before the record is written to the data
file. When the insert happens concurrently to selects, an
index read can find a key that references the record that is not
yet written to the data file. To avoid any access to such record,
the select saves the current end of file position when it starts.
Since concurrent inserts are always appended at end of the data
file, the select can easily ignore any concurrently inserted record.
The problem was that the ignore was only done for non-exact key
searches (partial key or using >, >=, < or <=).
The fix is to ignore concurrently inserted records also for
exact key searches.
No test case. Concurrent inserts cannot be tested with the test
suite. Test cases are attached to the bug report.
myisam/mi_rkey.c:
Bug#29838 - myisam corruption using concurrent select ... and update
Fixed mi_rkey() to always ignore records beyond saved eof.
Diffstat (limited to 'server-tools/instance-manager/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions