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:
Thirunarayanan Balathandayuthapani 2018-07-23 13:42:19 +03:00 committed by Marko Mäkelä
parent b660261be1
commit 730f6c912c
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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;
}