mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -3161,7 +3161,7 @@ bool Sql_cmd_call::execute(THD *thd)
|
||||
if (do_execute_sp(thd, sp))
|
||||
return true;
|
||||
|
||||
if (sp->sp_cache_version() == ULONG_MAX)
|
||||
if (sp->sp_cache_version() == 0)
|
||||
{
|
||||
sp_cache_flush(thd->sp_proc_cache, sp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user