mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
SQL: SP forced invalidate via 0
Invalidate via ULONG_MAX was wrong because sp_cache_flush_obsolete() works incorrectly in this case. Fixes MDEV-14749
This commit is contained in:
@ -1079,7 +1079,7 @@ int SELECT_LEX::vers_setup_conds(THD *thd, TABLE_LIST *tables, COND **where_expr
|
||||
if (thd->spcont)
|
||||
{
|
||||
DBUG_ASSERT(thd->spcont->m_sp);
|
||||
thd->spcont->m_sp->set_sp_cache_version(ULONG_MAX);
|
||||
thd->spcont->m_sp->set_sp_cache_version(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user