1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-34775 Wrong reopen of already open routine due to auto-create in SP

MDEV-34171 denied removing indirect routines/tables after
recover_from_failed_open() for auto-create partition case. Now we are
going further and keep them for any failed table reopen.

MDEV-34171 did not handle correctly open_and_process_routine() after
that skip of sp_remove_not_own_routines(). Now it is fixed by
sroutine_to_open correct usage.
This commit is contained in:
Aleksey Midenkov
2025-03-24 09:01:07 +03:00
parent f813c8541a
commit 4c695c85bd
4 changed files with 57 additions and 26 deletions

View File

@@ -3470,4 +3470,25 @@ drop table t;
#
# End of 10.9 tests
#
#
# MDEV-34775 Wrong reopen of already open routine due to auto-create in SP
#
create table t (a int) with system versioning
partition by system_time
interval 1 minute auto;
create function f()
returns int
begin
replace into t select * from t;
return 0;
end $
set timestamp= @@timestamp + 61;
select f();
f()
0
drop table t;
drop function f;
#
# End of 10.11 tests
#
set global innodb_stats_persistent= @save_persistent;