mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
MDEV-16779 Assertion !rw_lock_own failed upon purge
This is a regression caused by the fix of MDEV-15855. purge_vcol_info_t::set_used(): Add a missing condition. row_purge_poss_sec(): Invoke set_used() in order to have !is_first_fetch() when retrying.
This commit is contained in:
parent
b660261be1
commit
730f6c912c
2 changed files with 4 additions and 1 deletions
|
@ -92,7 +92,9 @@ struct purge_vcol_info_t
|
|||
return;
|
||||
}
|
||||
|
||||
first_use = used = true;
|
||||
if (!used) {
|
||||
first_use = used = true;
|
||||
}
|
||||
}
|
||||
|
||||
/** Check whether it fetches mariadb table for the first time.
|
||||
|
|
|
@ -345,6 +345,7 @@ retry_purge_sec:
|
|||
|
||||
if (node->vcol_info.is_first_fetch()) {
|
||||
if (node->vcol_info.mariadb_table) {
|
||||
node->vcol_info.set_used();
|
||||
goto retry_purge_sec;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue