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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user