Skip to content

Commit

Permalink
MDEV-31401 [demo] mysqld_server_started is no substitute for udf_init…
Browse files Browse the repository at this point in the history
…ialized

...when it comes to decide whether to insert into mysql.func or create
function. The test udf_mysql_func_early fails.
  • Loading branch information
mariadb-YuchenPei committed Jun 13, 2023
1 parent a2e71bc commit 91176a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--plugin-load-add=ha_spider
--init-file=$MYSQL_TEST_DIR/../storage/spider/mysql-test/spider/bugfix/t/udf_mysql_func_early.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install soname "ha_spider.so";
4 changes: 2 additions & 2 deletions storage/spider/spd_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6556,10 +6556,10 @@ bool spider_init_system_tables()
}

const int size= sizeof(spider_init_queries) / sizeof(spider_init_queries[0]);
LEX_STRING *udf_queries= udf_initialized ?
LEX_STRING *udf_queries= mysqld_server_started ?
(LEX_STRING *) spider_init_udf_queries :
(LEX_STRING *) spider_init_early_udf_queries;
const int udf_size = udf_initialized ?
const int udf_size = mysqld_server_started ?
sizeof(spider_init_udf_queries) / sizeof(spider_init_udf_queries[0]) :
sizeof(spider_init_early_udf_queries) / sizeof(spider_init_early_udf_queries[0]);
for (int i= 0; i < size + udf_size; i++)
Expand Down

0 comments on commit 91176a7

Please sign in to comment.