mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
mariadb direct update
This commit is contained in:
parent
1a7853ce5c
commit
120b635366
1 changed files with 9 additions and 2 deletions
|
@ -3718,28 +3718,35 @@ bool spider_conn_use_handler(
|
|||
#endif
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
#endif
|
||||
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
|
||||
if (spider->do_direct_update)
|
||||
{
|
||||
spider->sql_kinds |= SPIDER_SQL_KIND_SQL;
|
||||
spider->sql_kind[link_idx] = SPIDER_SQL_KIND_SQL;
|
||||
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
|
||||
if (spider_bit_is_set(spider->do_hs_direct_update, link_idx))
|
||||
{
|
||||
spider->direct_update_kinds |= SPIDER_SQL_KIND_HS;
|
||||
DBUG_PRINT("info",("spider TRUE by using HS direct_update"));
|
||||
DBUG_RETURN(TRUE);
|
||||
} else
|
||||
} else {
|
||||
#endif
|
||||
spider->direct_update_kinds |= SPIDER_SQL_KIND_SQL;
|
||||
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
|
||||
}
|
||||
if (spider->conn_kind[link_idx] == SPIDER_CONN_KIND_MYSQL)
|
||||
{
|
||||
#endif
|
||||
DBUG_PRINT("info",("spider FALSE by using direct_update"));
|
||||
DBUG_RETURN(FALSE);
|
||||
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
|
||||
} else {
|
||||
DBUG_PRINT("info",("spider TRUE by using BOTH"));
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
if (spider->use_spatial_index)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue