Skip to content

Commit 7f6ddce

Browse files
committed
Merge 10.6 into 10.7
2 parents 7889aae + 6b083ce commit 7f6ddce

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

storage/spider/spd_conn.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ uchar *spider_conn_get_key(
132132
DBUG_ENTER("spider_conn_get_key");
133133
*length = conn->conn_key_length;
134134
DBUG_PRINT("info",("spider conn_kind=%u", conn->conn_kind));
135-
#ifndef DBUG_OFF
135+
#ifdef DBUG_TRACE
136136
spider_print_keys(conn->conn_key, conn->conn_key_length);
137137
#endif
138138
DBUG_RETURN((uchar*) conn->conn_key);
@@ -990,19 +990,19 @@ SPIDER_CONN *spider_get_conn(
990990
if (conn_kind == SPIDER_CONN_KIND_MYSQL)
991991
{
992992
#endif
993-
#ifndef DBUG_OFF
993+
#ifdef DBUG_TRACE
994994
spider_print_keys(conn_key, share->conn_keys_lengths[link_idx]);
995995
#endif
996996
#if defined(HS_HAS_SQLCOM) && defined(HAVE_HANDLERSOCKET)
997997
} else if (conn_kind == SPIDER_CONN_KIND_HS_READ)
998998
{
999999
conn_key = share->hs_read_conn_keys[link_idx];
1000-
#ifndef DBUG_OFF
1000+
#ifdef DBUG_TRACE
10011001
spider_print_keys(conn_key, share->hs_read_conn_keys_lengths[link_idx]);
10021002
#endif
10031003
} else {
10041004
conn_key = share->hs_write_conn_keys[link_idx];
1005-
#ifndef DBUG_OFF
1005+
#ifdef DBUG_TRACE
10061006
spider_print_keys(conn_key, share->hs_write_conn_keys_lengths[link_idx]);
10071007
#endif
10081008
}

storage/spider/spd_db_mysql.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ int spider_db_mbase_result::fetch_table_status(
912912
#endif
913913
} else
914914
stat.create_time = (time_t) 0;
915-
#ifndef DBUG_OFF
915+
#ifdef DBUG_TRACE
916916
{
917917
struct tm *ts, tmp_ts;
918918
char buf[80];
@@ -962,7 +962,7 @@ int spider_db_mbase_result::fetch_table_status(
962962
#endif
963963
} else
964964
stat.check_time = (time_t) 0;
965-
#ifndef DBUG_OFF
965+
#ifdef DBUG_TRACE
966966
{
967967
struct tm *ts, tmp_ts;
968968
char buf[80];
@@ -1041,7 +1041,7 @@ int spider_db_mbase_result::fetch_table_status(
10411041
#endif
10421042
} else
10431043
stat.create_time = (time_t) 0;
1044-
#ifndef DBUG_OFF
1044+
#ifdef DBUG_TRACE
10451045
{
10461046
struct tm *ts, tmp_ts;
10471047
char buf[80];
@@ -1066,7 +1066,7 @@ int spider_db_mbase_result::fetch_table_status(
10661066
#endif
10671067
} else
10681068
stat.update_time = (time_t) 0;
1069-
#ifndef DBUG_OFF
1069+
#ifdef DBUG_TRACE
10701070
{
10711071
struct tm *ts, tmp_ts;
10721072
char buf[80];
@@ -1091,7 +1091,7 @@ int spider_db_mbase_result::fetch_table_status(
10911091
#endif
10921092
} else
10931093
stat.check_time = (time_t) 0;
1094-
#ifndef DBUG_OFF
1094+
#ifdef DBUG_TRACE
10951095
{
10961096
struct tm *ts, tmp_ts;
10971097
char buf[80];
@@ -4213,7 +4213,7 @@ int spider_db_mariadb_util::append_column_value(ha_spider *spider,
42134213
ptr = tmp_str.get_str();
42144214
} else if (field->type() == MYSQL_TYPE_GEOMETRY)
42154215
{
4216-
#ifndef DBUG_OFF
4216+
#ifdef DBUG_TRACE
42174217
double xmin, xmax, ymin, ymax;
42184218
float8get(xmin, new_ptr);
42194219
float8get(xmax, new_ptr + 8);
@@ -4370,7 +4370,7 @@ int spider_db_mysql_util::append_column_value(
43704370
}
43714371
tmp_str.length(SIZEOF_STORED_DOUBLE * lcnt);
43724372
*/
4373-
#ifndef DBUG_OFF
4373+
#ifdef DBUG_TRACE
43744374
double xmin, xmax, ymin, ymax;
43754375
/*
43764376
float8store(buf,xmin);

storage/spider/spd_db_mysql.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ class spider_db_mbase_util: public spider_db_util
195195
spider_string *str
196196
) override;
197197
#endif
198-
bool tables_on_different_db_are_joinable();
199-
bool socket_has_default_value();
200-
bool database_has_default_value();
201-
bool default_file_has_default_value();
202-
bool host_has_default_value();
203-
bool port_has_default_value();
204-
bool append_charset_name_before_string();
198+
bool tables_on_different_db_are_joinable() override;
199+
bool socket_has_default_value() override;
200+
bool database_has_default_value() override;
201+
bool default_file_has_default_value() override;
202+
bool host_has_default_value() override;
203+
bool port_has_default_value() override;
204+
bool append_charset_name_before_string() override;
205205
};
206206

207207
class spider_db_mysql_util: public spider_db_mbase_util

storage/spider/spd_table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4396,7 +4396,7 @@ int spider_set_connect_info_default_dbtable(
43964396
));
43974397
}
43984398

4399-
#ifndef DBUG_OFF
4399+
#ifdef DBUG_TRACE
44004400
void spider_print_keys(
44014401
const char *key,
44024402
uint length

storage/spider/spd_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ int spider_set_connect_info_default_dbtable(
431431
int dbtable_name_length
432432
);
433433

434-
#ifndef DBUG_OFF
434+
#ifdef DBUG_TRACE
435435
void spider_print_keys(
436436
const char *key,
437437
uint length

0 commit comments

Comments
 (0)