Skip to content

Commit dc900cc

Browse files
committed
Remove a bunch of TODO's, fix perfschema.threads_innodb test
1 parent d019af4 commit dc900cc

File tree

23 files changed

+90
-304
lines changed

23 files changed

+90
-304
lines changed

include/my_global.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ static inline bool isfinite(double x) { return std::isfinite(x); }
817817
#ifndef HAVE_ISNAN
818818
#define isnan(x) ((x) != (x))
819819
#endif
820+
#define my_isnan(x) isnan(x)
820821

821822
#ifdef HAVE_ISINF
822823
#define my_isinf(X) isinf(X)

mysql-test/suite/perfschema/r/threads_innodb.result

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ FROM performance_schema.threads
55
WHERE name LIKE 'thread/innodb/%'
66
GROUP BY name;
77
name type processlist_user processlist_host processlist_db processlist_command processlist_time processlist_state processlist_info parent_thread_id role instrumented
8-
thread/innodb/io_handler_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
8+
thread/innodb/io_ibuf_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
9+
thread/innodb/io_log_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
10+
thread/innodb/io_read_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
11+
thread/innodb/io_write_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
912
thread/innodb/page_cleaner_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
1013
thread/innodb/srv_error_monitor_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES
1114
thread/innodb/srv_lock_timeout_thread BACKGROUND NULL NULL NULL NULL NULL NULL NULL NULL NULL YES

sql/share/errmsg-utf8.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7150,6 +7150,8 @@ skip-to-error-number 3000
71507150

71517151
ER_MYSQL_57_TEST
71527152
eng "5.7 test"
7153+
ER_WRONG_TABLESPACE_NAME 42000
7154+
eng "Incorrect tablespace name %`-.192s"
71537155
ER_CANNOT_DISCARD_TEMPORARY_TABLE
71547156
eng "Cannot DISCARD/IMPORT tablespace associated with temporary table"
71557157

storage/innobase/buf/buf0dump.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ Created April 08, 2011 Vasil Dimov
2525

2626
#include "my_global.h"
2727
#include "my_sys.h"
28-
/* JAN: TODO: missing MySQL 5.7 include */
29-
#ifdef HAVE_MY_THREAD_H
30-
// #include "my_thread.h"
31-
#endif
3228

3329
#include "mysql/psi/mysql_stage.h"
3430
#include "mysql/psi/psi.h"

storage/innobase/buf/buf0flu.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3139,9 +3139,7 @@ DECLARE_THREAD(buf_flush_page_cleaner_coordinator)(
31393139

31403140
my_thread_init();
31413141
#ifdef UNIV_PFS_THREAD
3142-
/* JAN: TODO: MySQL 5.7 PSI
31433142
pfs_register_thread(page_cleaner_thread_key);
3144-
*/
31453143
#endif /* UNIV_PFS_THREAD */
31463144

31473145
#ifdef UNIV_DEBUG_THREAD_CREATION

storage/innobase/dict/dict0stats.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,14 +2832,11 @@ dict_stats_fetch_index_stats_step(
28322832
#define PFX "n_diff_pfx"
28332833
#define PFX_LEN 10
28342834

2835-
/** JAN: TODO: MySQL 5.7 native_strncasecmp() */
28362835
if (stat_name_len == 4 /* strlen("size") */
2837-
// && native_strncasecmp("size", stat_name, stat_name_len) == 0) {
28382836
&& strncasecmp("size", stat_name, stat_name_len) == 0) {
28392837
index->stat_index_size = (ulint) stat_value;
28402838
arg->stats_were_modified = true;
28412839
} else if (stat_name_len == 12 /* strlen("n_leaf_pages") */
2842-
// && native_strncasecmp("n_leaf_pages", stat_name, stat_name_len)
28432840
&& strncasecmp("n_leaf_pages", stat_name, stat_name_len)
28442841
== 0) {
28452842
index->stat_n_leaf_pages = (ulint) stat_value;
@@ -2855,7 +2852,6 @@ dict_stats_fetch_index_stats_step(
28552852
index->stat_defrag_n_pages_freed = (ulint) stat_value;
28562853
arg->stats_were_modified = true;
28572854
} else if (stat_name_len > PFX_LEN /* e.g. stat_name=="n_diff_pfx01" */
2858-
// && native_strncasecmp(PFX, stat_name, PFX_LEN) == 0) {
28592855
&& strncasecmp(PFX, stat_name, PFX_LEN) == 0) {
28602856

28612857
const char* num_ptr;

storage/innobase/fil/fil0fil.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7224,7 +7224,7 @@ fil_no_punch_hole(fil_node_t* node)
72247224
node->punch_hole = false;
72257225
}
72267226

7227-
#ifdef MYSQL_COMPRESSION_ENCRYPTION
7227+
#ifdef MYSQL_COMPRESSION
72287228

72297229
/** Set the compression type for the tablespace of a table
72307230
@param[in] table The table that should be compressed
@@ -7412,7 +7412,7 @@ fil_encryption_rotate()
74127412

74137413
return(true);
74147414
}
7415-
#endif /* MYSQL_COMPRESSION_ENCRYPTION */
7415+
#endif /* MYSQL_COMPRESSION */
74167416

74177417
/** Build the basic folder name from the path and length provided
74187418
@param[in] path pathname (may also include the file basename)

storage/innobase/fts/fts0fts.cc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4840,9 +4840,7 @@ fts_check_token(
48404840
n_chars = 0;
48414841

48424842
while (next < end) {
4843-
/* TODO: JAN: MySQL 5.7 used my_mbcharlen_ptr here
4844-
char_len = my_mbcharlen_ptr(cs, next, end);*/
4845-
char_len = cs->cset->charlen(cs, (const uchar*)next, (const uchar*)end);
4843+
char_len = my_charlen(cs, next, end);
48464844

48474845
if (next + char_len > end || char_len == 0) {
48484846
break;
@@ -4875,9 +4873,7 @@ fts_check_token(
48754873
}
48764874

48774875
/* Move a char forward */
4878-
/* JAN: TODO: MySQL 5.7
4879-
start += my_mbcharlen_ptr(cs, start, end); */
4880-
start += cs->cset->charlen(cs, (const uchar*)next, (const uchar*)end);
4876+
start += my_charlen(cs, start, end);
48814877
n_chars = ngram_token_size - 1;
48824878
}
48834879
}
@@ -5031,8 +5027,6 @@ int
50315027
fts_tokenize_document_internal(
50325028
/*===========================*/
50335029
MYSQL_FTPARSER_PARAM* param, /*!< in: parser parameter */
5034-
/* JAN: TODO: MySQL 5.7
5035-
char* doc,*/
50365030
const char* doc,/*!< in/out: document */
50375031
int len) /*!< in: document length */
50385032
{

storage/innobase/gis/gis0geo.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,9 @@ mbr_join_square(
365365
} while (a != end);
366366

367367
/* Check for infinity or NaN, so we don't get NaN in calculations */
368-
/* JAN: TODO: MYSQL 5.7 GIS
369368
if (my_isinf(square) || my_isnan(square)) {
370369
return DBL_MAX;
371370
}
372-
*/
373371

374372
return square;
375373
}

storage/innobase/gis/gis0rtree.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,11 +1988,9 @@ rtr_estimate_n_rows_in_range(
19881988
mtr_commit(&mtr);
19891989
mem_heap_free(heap);
19901990

1991-
/* JAN: TODO MYSQL 5.7 GIS
19921991
if (my_isinf(area) || my_isnan(area)) {
19931992
return(HA_POS_ERROR);
19941993
}
1995-
*/
19961994

19971995
return(static_cast<int64_t>(dict_table_get_n_rows(index->table)
19981996
* area / n_recs));

0 commit comments

Comments
 (0)