summaryrefslogtreecommitdiff
path: root/mysql-test/t/rollback.test
diff options
context:
space:
mode:
authorGuilhem Bichot <guilhem@mysql.com>2009-02-09 22:52:42 +0100
committerGuilhem Bichot <guilhem@mysql.com>2009-02-09 22:52:42 +0100
commit3d345b748687870a703885d39f0d80ac12e2a9fa (patch)
treea7fbefd733111a6af98afd1f29128512c297e9f8 /mysql-test/t/rollback.test
parent7b3fae7daf92ea825d7f6f98ddfd8264ec4c940d (diff)
downloadmariadb-git-3d345b748687870a703885d39f0d80ac12e2a9fa.tar.gz
Callers of translog_deassign_id_from_share() need intern_lock.
Assert that keys don't point to bitmap pages. storage/maria/ma_blockrec.h: assertion storage/maria/ma_locking.c: With concurrent INSERTs, it is possible that two threads enter _ma_mark_file_changed() at the same time, so they should serialize their access to the "changed" state/share members; another reason is that this function may call _ma_update_state_lsns_sub() which may call translog_deassign_id_from_share() (I saw it during testing of online backup) which requires the intern_lock mutex. As INSERTs only change from "not changed" to "changed", we can first check without mutex: if it says "changed", some other thread has set or is setting the variables now, we don't need to do it; if it says "not changed", we serialize and re-check.
Diffstat (limited to 'mysql-test/t/rollback.test')
0 files changed, 0 insertions, 0 deletions