diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-12-12 11:41:12 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-12-12 11:41:12 +0200 |
commit | 1862273c432616995bb5eb367ad6b4b686cc2082 (patch) | |
tree | 307fc63d104894f1f19d4bf36be64dd3f5a14c80 /mysql-test/std_data | |
parent | cf437f6be9930dbb1a145dd555bb8fda33c37637 (diff) | |
download | mariadb-git-1862273c432616995bb5eb367ad6b4b686cc2082.tar.gz |
MDEV-30209 Race condition between fil_node_open_file() and renaming files
mtr_t::commit_file(): Protect the rename operation with fil_system.mutex
like we used to do before commit 2e43af69e3e34019374b8d49f2599ec22a8095fe
in order to prevent fil_node_open_file() from running concurrently.
In other words, fil_system.mutex will protect the consistency of
fil_node_t::name and the file name in the file system.
This race condition should be very hard to trigger. We would need
a low value of innodb_open_files or table_cache limit so that
fil_space_t::try_to_close() will be invoked frequently. Simultaneously
with a RENAME operation, something (such as a write of a data page)
would have to try to open the file.
Diffstat (limited to 'mysql-test/std_data')
0 files changed, 0 insertions, 0 deletions