mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
refs #5421, fix a race condition in accessing p->attr.
git-svn-id: file:///svn/toku/tokudb@47308 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
cca3b63cab
commit
000ecba786
1 changed files with 1 additions and 1 deletions
|
@ -1901,9 +1901,9 @@ cachetable_unpin_internal(
|
|||
CACHETABLE ct = cachefile->cachetable;
|
||||
bool added_data_to_cachetable = false;
|
||||
|
||||
pair_lock(p);
|
||||
PAIR_ATTR old_attr = p->attr;
|
||||
PAIR_ATTR new_attr = attr;
|
||||
pair_lock(p);
|
||||
if (dirty) {
|
||||
p->dirty = CACHETABLE_DIRTY;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue