Skip to content
Permalink
Browse files
MDEV-29613 fixup: Fix Spider
  • Loading branch information
dr-m committed Nov 20, 2022
1 parent 20969aa commit 0d586d6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
@@ -128,7 +128,7 @@ uchar *spider_conn_get_key(
DBUG_ENTER("spider_conn_get_key");
*length = conn->conn_key_length;
DBUG_PRINT("info",("spider conn_kind=%u", conn->conn_kind));
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
spider_print_keys(conn->conn_key, conn->conn_key_length);
#endif
DBUG_RETURN((uchar*) conn->conn_key);
@@ -829,19 +829,19 @@ SPIDER_CONN *spider_get_conn(
if (conn_kind == SPIDER_CONN_KIND_MYSQL)
{
#endif
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
spider_print_keys(conn_key, share->conn_keys_lengths[link_idx]);
#endif
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
} else if (conn_kind == SPIDER_CONN_KIND_HS_READ)
{
conn_key = share->hs_read_conn_keys[link_idx];
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
spider_print_keys(conn_key, share->hs_read_conn_keys_lengths[link_idx]);
#endif
} else {
conn_key = share->hs_write_conn_keys[link_idx];
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
spider_print_keys(conn_key, share->hs_write_conn_keys_lengths[link_idx]);
#endif
}
@@ -902,7 +902,7 @@ int spider_db_mbase_result::fetch_table_status(
#endif
} else
stat.create_time = (time_t) 0;
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
{
struct tm *ts, tmp_ts;
char buf[80];
@@ -952,7 +952,7 @@ int spider_db_mbase_result::fetch_table_status(
#endif
} else
stat.check_time = (time_t) 0;
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
{
struct tm *ts, tmp_ts;
char buf[80];
@@ -1031,7 +1031,7 @@ int spider_db_mbase_result::fetch_table_status(
#endif
} else
stat.create_time = (time_t) 0;
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
{
struct tm *ts, tmp_ts;
char buf[80];
@@ -1056,7 +1056,7 @@ int spider_db_mbase_result::fetch_table_status(
#endif
} else
stat.update_time = (time_t) 0;
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
{
struct tm *ts, tmp_ts;
char buf[80];
@@ -1081,7 +1081,7 @@ int spider_db_mbase_result::fetch_table_status(
#endif
} else
stat.check_time = (time_t) 0;
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
{
struct tm *ts, tmp_ts;
char buf[80];
@@ -4065,7 +4065,7 @@ int spider_db_mariadb_util::append_column_value(ha_spider *spider,
ptr = tmp_str.get_str();
} else if (field->type() == MYSQL_TYPE_GEOMETRY)
{
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
double xmin, xmax, ymin, ymax;
float8get(xmin, new_ptr);
float8get(xmax, new_ptr + 8);
@@ -4222,7 +4222,7 @@ int spider_db_mysql_util::append_column_value(
}
tmp_str.length(SIZEOF_STORED_DOUBLE * lcnt);
*/
#ifndef DBUG_OFF
#ifdef DBUG_TRACE
double xmin, xmax, ymin, ymax;
/*
float8store(buf,xmin);
@@ -3986,7 +3986,7 @@ int spider_set_connect_info_default_dbtable(
));
}

#ifndef DBUG_OFF
#ifdef DBUG_TRACE
void spider_print_keys(
const char *key,
uint length
@@ -439,7 +439,7 @@ int spider_set_connect_info_default_dbtable(
int dbtable_name_length
);

#ifndef DBUG_OFF
#ifdef DBUG_TRACE
void spider_print_keys(
const char *key,
uint length

0 comments on commit 0d586d6

Please sign in to comment.