Skip to content

Commit d019af4

Browse files
committed
misc after-merge changes:
* remove new InnoDB-specific ER_ and HA_ERR_ codes * renamed few old ER_ and HA_ERR_ error messages to be less MyISAM-specific * remove duplicate enum definitions (durability_properties, icp_result) * move new mysql-test include files to their owner suite * rename xtradb.rdiff files to *-disabled * remove mistakenly committed helper perl module * remove long obsolete handler::ha_statistic_increment() method * restore the standard C xid_t structure to not have setters and getters * remove xid_t::reset that was cleaning too much * move MySQL-5.7 ER_ codes where they belong * fir innodb to include service_wsrep.h not internal wsrep headers * update tests and results
1 parent d8cbad0 commit d019af4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+141
-342
lines changed

include/my_base.h

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -497,24 +497,19 @@ enum ha_base_keytype {
497497
#define HA_ERR_DISK_FULL 189
498498
#define HA_ERR_INCOMPATIBLE_DEFINITION 190
499499
#define HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE 191 /* Too many words in a phrase */
500-
#define HA_ERR_DECRYPTION_FAILED 192 /* Table encrypted but
501-
decypt failed */
500+
#define HA_ERR_DECRYPTION_FAILED 192 /* Table encrypted but decypt failed */
502501
#define HA_ERR_FK_DEPTH_EXCEEDED 193 /* FK cascade depth exceeded */
503-
#define HA_MISSING_CREATE_OPTION 194 /* Option Missing during Create */
504-
#define HA_ERR_SE_OUT_OF_MEMORY 195 /* Out of memory in storage engine */
505-
#define HA_ERR_TABLE_CORRUPT 196 /* Table/Clustered index is corrupted. */
506-
#define HA_ERR_QUERY_INTERRUPTED 197 /* The query was interrupted */
507-
#define HA_ERR_TABLESPACE_MISSING 198 /* Missing Tablespace */
508-
#define HA_ERR_TABLESPACE_IS_NOT_EMPTY 199 /* Tablespace is not empty */
509-
#define HA_ERR_WRONG_FILE_NAME 200 /* Invalid Filename */
510-
#define HA_ERR_NOT_ALLOWED_COMMAND 201 /* Operation is not allowed */
511-
#define HA_ERR_COMPUTE_FAILED 202 /* Compute generated column value failed */
512-
#define HA_ERR_INNODB_READ_ONLY 203 /* InnoDB is in read only mode */
513-
#define HA_ERR_LAST 203 /* Copy of last error nr * */
502+
#define HA_ERR_TABLESPACE_MISSING 194 /* Missing Tablespace */
503+
#define HA_ERR_LAST 194 /* Copy of last error nr * */
514504

515505
/* Number of different errors */
516506
#define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1)
517507

508+
/* aliases */
509+
#define HA_ERR_TABLE_CORRUPT HA_ERR_WRONG_IN_RECORD
510+
#define HA_ERR_QUERY_INTERRUPTED HA_ERR_ABORTED_BY_USER
511+
#define HA_ERR_NOT_ALLOWED_COMMAND HA_ERR_WRONG_COMMAND
512+
518513
/* Other constants */
519514

520515
#define HA_NAMELEN 64 /* Max length of saved filename */
@@ -643,17 +638,4 @@ C_MODE_START
643638
typedef void (* invalidator_by_filename)(const char * filename);
644639
C_MODE_END
645640

646-
647-
enum durability_properties
648-
{
649-
/*
650-
Preserves the durability properties defined by the engine */
651-
HA_REGULAR_DURABILITY= 0,
652-
/*
653-
Ignore the durability properties defined by the engine and
654-
write only in-memory entries.
655-
*/
656-
HA_IGNORE_DURABILITY= 1
657-
};
658-
659641
#endif /* _my_base_h */

include/my_handler_errors.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@
2323

2424
static const char *handler_error_messages[]=
2525
{
26+
/* 120 */
2627
"Didn't find key on read or update",
2728
"Duplicate key on write or update",
2829
"Internal (unspecified) error in handler",
2930
"Someone has changed the row since it was read (while the table was locked to prevent it)",
3031
"Wrong index given to function",
3132
"Undefined handler error 125",
32-
"Index file is crashed",
33-
"Record file is crashed",
33+
"Index is corrupted",
34+
"Table file is corrupted",
3435
"Out of memory in engine",
3536
"Undefined handler error 129",
37+
/* 130 */
3638
"Incorrect file format",
3739
"Command not supported by database",
3840
"Old database file",
@@ -43,6 +45,7 @@ static const char *handler_error_messages[]=
4345
"No more records (read after end of file)",
4446
"Unsupported extension used for table",
4547
"Too big row",
48+
/* 140 */
4649
"Wrong create options",
4750
"Duplicate unique key or constraint on write or update",
4851
"Unknown character set used in table",
@@ -53,6 +56,7 @@ static const char *handler_error_messages[]=
5356
"Lock table is full; Restart program with a larger lock table",
5457
"Updates are not allowed under a read only transactions",
5558
"Lock deadlock; Retry transaction",
59+
/* 150 */
5660
"Foreign key constraint is incorrectly formed",
5761
"Cannot add a child row",
5862
"Cannot delete a parent row",
@@ -63,6 +67,7 @@ static const char *handler_error_messages[]=
6367
"Could not connect to storage engine",
6468
"Unexpected null pointer found when using spatial index",
6569
"The table changed in storage engine",
70+
/* 160 */
6671
"There's no partition in table for the given value",
6772
"Row-based binary logging of row failed",
6873
"Index needed in foreign key constraint",
@@ -73,6 +78,7 @@ static const char *handler_error_messages[]=
7378
"Failed to set row auto increment value",
7479
"Unknown (generic) error from engine",
7580
"Record was not update. Original values was same as new values",
81+
/* 170 */
7682
"It is not possible to log this statement",
7783
"The event was corrupt, leading to illegal data being read",
7884
"The table is of a new format not supported by this version",
@@ -83,6 +89,7 @@ static const char *handler_error_messages[]=
8389
"Too many active concurrent transactions",
8490
"Record not matching the given partition set",
8591
"Index column length exceeds limit",
92+
/* 180 */
8693
"Index corrupted",
8794
"Undo record too big",
8895
"Invalid InnoDB FTS Doc ID",
@@ -93,20 +100,12 @@ static const char *handler_error_messages[]=
93100
"Row is not visible by the current transaction",
94101
"Operation was interrupted by end user (probably kill command?)",
95102
"Disk full",
103+
/* 190 */
96104
"Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this",
97105
"Too many words in a FTS phrase or proximity search",
98106
"Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.",
99107
"Foreign key cascade delete/update exceeds max depth",
100-
"Table storage engine found required create option missing",
101-
"Out of memory in storage engine",
102-
"Operation cannot be performed. The table is missing, corrupt or contains bad data.",
103-
"Query execution was interrupted",
104-
"Tablespace is missing for table",
105-
"Tablespace is not empty",
106-
"Incorrect File Name",
107-
"Table storage engine found required create option missing",
108-
"Compute virtual column value failed",
109-
"InnoDB is in read only mode"
108+
"Tablespace is missing for table"
110109
};
111110

112111
#endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */

include/my_icp.h

Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
--disable_warnings
21
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE LOWER(variable_name) = 'innodb_page_size' AND variable_value = 16384`)
32
{
43
--skip Test requires InnoDB with 16k Page size.
54
}
6-
--enable_warnings

mysql-test/include/have_innodb_max_16k.inc

Lines changed: 0 additions & 4 deletions
This file was deleted.

mysql-test/include/have_numa.inc

Lines changed: 0 additions & 18 deletions
This file was deleted.

mysql-test/mysql-test-run.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4400,7 +4400,6 @@ ($$)
44004400
qr/Slave SQL thread retried transaction/,
44014401
qr/Slave \(additional info\)/,
44024402
qr/Incorrect information in file/,
4403-
qr/Incorrect key file for table .*crashed.*/,
44044403
qr/Slave I\/O: Get master SERVER_ID failed with error:.*/,
44054404
qr/Slave I\/O: Get master clock failed with error:.*/,
44064405
qr/Slave I\/O: Get master COLLATION_SERVER failed with error:.*/,

mysql-test/r/merge_debug.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set @default_storage_engine= @@global.storage_engine;
22
set global storage_engine=myisam;
33
set session storage_engine=myisam;
4+
call mtr.add_suppression("Index for table .*crashed' is corrupt; try to repair it");
45
drop table if exists crashed,t2,t3,t4;
56
SET @orig_debug=@@debug;
67
CREATE TABLE crashed (c1 INT);

mysql-test/suite/handler/innodb.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ optimize table t1;
545545
connection default;
546546
handler t1 read next;
547547
c1
548-
1
549548
handler t1 close;
550549
connection con2;
551550
Table Op Msg_type Msg_text

0 commit comments

Comments
 (0)