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

Merge branch '10.6' into 10.11

This commit is contained in:
Oleksandr Byelkin
2024-07-20 08:16:24 +02:00
362 changed files with 7658 additions and 3804 deletions

View File

@@ -5222,6 +5222,22 @@ int spider_db_mbase_util::append_time_zone(
DBUG_RETURN(0);
}
/*
iterate over loop_check_queue and build queries for loop check
The query is in the form of
set @`spider_lc_.<to_table>` =
'-<mac1>-<pid1>-<from_table1>--<mac2>-<pid2>-<from_table2>-...'
where from_table1, from_table2 etc. are spider tables whose direct
or indirect remote data nodes contain to_table.
e.g. if t0->t1->t2, then the query could be:
set @`spider_lc_./test/t2` =
'-234567890abc-def012-./test/t1--1234567890ab-cdef01-./test/t0-'
*/
int spider_db_mbase_util::append_loop_check(
spider_string *str,
SPIDER_CONN *conn