summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-09-10 16:04:44 +0200
committerSergei Golubchik <serg@mariadb.org>2016-09-10 16:04:44 +0200
commitd019af402cdaa80bd03ad8a5cf2c11cf54443248 (patch)
treebcbe5acdb8804a3087639b6d9de70c3d1149cb65 /include
parentd8cbad069acd171c0b9d417fbda74aaf1f3c96a1 (diff)
downloadmariadb-git-d019af402cdaa80bd03ad8a5cf2c11cf54443248.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/my_base.h34
-rw-r--r--include/my_handler_errors.h23
-rw-r--r--include/my_icp.h48
3 files changed, 19 insertions, 86 deletions
diff --git a/include/my_base.h b/include/my_base.h
index af053369f93..f5842685f9d 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -497,24 +497,19 @@ enum ha_base_keytype {
#define HA_ERR_DISK_FULL 189
#define HA_ERR_INCOMPATIBLE_DEFINITION 190
#define HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE 191 /* Too many words in a phrase */
-#define HA_ERR_DECRYPTION_FAILED 192 /* Table encrypted but
- decypt failed */
+#define HA_ERR_DECRYPTION_FAILED 192 /* Table encrypted but decypt failed */
#define HA_ERR_FK_DEPTH_EXCEEDED 193 /* FK cascade depth exceeded */
-#define HA_MISSING_CREATE_OPTION 194 /* Option Missing during Create */
-#define HA_ERR_SE_OUT_OF_MEMORY 195 /* Out of memory in storage engine */
-#define HA_ERR_TABLE_CORRUPT 196 /* Table/Clustered index is corrupted. */
-#define HA_ERR_QUERY_INTERRUPTED 197 /* The query was interrupted */
-#define HA_ERR_TABLESPACE_MISSING 198 /* Missing Tablespace */
-#define HA_ERR_TABLESPACE_IS_NOT_EMPTY 199 /* Tablespace is not empty */
-#define HA_ERR_WRONG_FILE_NAME 200 /* Invalid Filename */
-#define HA_ERR_NOT_ALLOWED_COMMAND 201 /* Operation is not allowed */
-#define HA_ERR_COMPUTE_FAILED 202 /* Compute generated column value failed */
-#define HA_ERR_INNODB_READ_ONLY 203 /* InnoDB is in read only mode */
-#define HA_ERR_LAST 203 /* Copy of last error nr * */
+#define HA_ERR_TABLESPACE_MISSING 194 /* Missing Tablespace */
+#define HA_ERR_LAST 194 /* Copy of last error nr * */
/* Number of different errors */
#define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1)
+/* aliases */
+#define HA_ERR_TABLE_CORRUPT HA_ERR_WRONG_IN_RECORD
+#define HA_ERR_QUERY_INTERRUPTED HA_ERR_ABORTED_BY_USER
+#define HA_ERR_NOT_ALLOWED_COMMAND HA_ERR_WRONG_COMMAND
+
/* Other constants */
#define HA_NAMELEN 64 /* Max length of saved filename */
@@ -643,17 +638,4 @@ C_MODE_START
typedef void (* invalidator_by_filename)(const char * filename);
C_MODE_END
-
-enum durability_properties
-{
- /*
- Preserves the durability properties defined by the engine */
- HA_REGULAR_DURABILITY= 0,
- /*
- Ignore the durability properties defined by the engine and
- write only in-memory entries.
- */
- HA_IGNORE_DURABILITY= 1
-};
-
#endif /* _my_base_h */
diff --git a/include/my_handler_errors.h b/include/my_handler_errors.h
index 3d05fb75054..bdea4f71eaf 100644
--- a/include/my_handler_errors.h
+++ b/include/my_handler_errors.h
@@ -23,16 +23,18 @@
static const char *handler_error_messages[]=
{
+ /* 120 */
"Didn't find key on read or update",
"Duplicate key on write or update",
"Internal (unspecified) error in handler",
"Someone has changed the row since it was read (while the table was locked to prevent it)",
"Wrong index given to function",
"Undefined handler error 125",
- "Index file is crashed",
- "Record file is crashed",
+ "Index is corrupted",
+ "Table file is corrupted",
"Out of memory in engine",
"Undefined handler error 129",
+ /* 130 */
"Incorrect file format",
"Command not supported by database",
"Old database file",
@@ -43,6 +45,7 @@ static const char *handler_error_messages[]=
"No more records (read after end of file)",
"Unsupported extension used for table",
"Too big row",
+ /* 140 */
"Wrong create options",
"Duplicate unique key or constraint on write or update",
"Unknown character set used in table",
@@ -53,6 +56,7 @@ static const char *handler_error_messages[]=
"Lock table is full; Restart program with a larger lock table",
"Updates are not allowed under a read only transactions",
"Lock deadlock; Retry transaction",
+ /* 150 */
"Foreign key constraint is incorrectly formed",
"Cannot add a child row",
"Cannot delete a parent row",
@@ -63,6 +67,7 @@ static const char *handler_error_messages[]=
"Could not connect to storage engine",
"Unexpected null pointer found when using spatial index",
"The table changed in storage engine",
+ /* 160 */
"There's no partition in table for the given value",
"Row-based binary logging of row failed",
"Index needed in foreign key constraint",
@@ -73,6 +78,7 @@ static const char *handler_error_messages[]=
"Failed to set row auto increment value",
"Unknown (generic) error from engine",
"Record was not update. Original values was same as new values",
+ /* 170 */
"It is not possible to log this statement",
"The event was corrupt, leading to illegal data being read",
"The table is of a new format not supported by this version",
@@ -83,6 +89,7 @@ static const char *handler_error_messages[]=
"Too many active concurrent transactions",
"Record not matching the given partition set",
"Index column length exceeds limit",
+ /* 180 */
"Index corrupted",
"Undo record too big",
"Invalid InnoDB FTS Doc ID",
@@ -93,20 +100,12 @@ static const char *handler_error_messages[]=
"Row is not visible by the current transaction",
"Operation was interrupted by end user (probably kill command?)",
"Disk full",
+ /* 190 */
"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",
"Too many words in a FTS phrase or proximity search",
"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.",
"Foreign key cascade delete/update exceeds max depth",
- "Table storage engine found required create option missing",
- "Out of memory in storage engine",
- "Operation cannot be performed. The table is missing, corrupt or contains bad data.",
- "Query execution was interrupted",
- "Tablespace is missing for table",
- "Tablespace is not empty",
- "Incorrect File Name",
- "Table storage engine found required create option missing",
- "Compute virtual column value failed",
- "InnoDB is in read only mode"
+ "Tablespace is missing for table"
};
#endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */
diff --git a/include/my_icp.h b/include/my_icp.h
deleted file mode 100644
index 8b77b7cc759..00000000000
--- a/include/my_icp.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; version 2 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
-
-#ifndef _my_icp_h
-#define _my_icp_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- Values returned by index_cond_func_xxx functions.
-*/
-
-typedef enum icp_result {
- /** Index tuple doesn't satisfy the pushed index condition (the engine
- should discard the tuple and go to the next one) */
- ICP_NO_MATCH,
-
- /** Index tuple satisfies the pushed index condition (the engine should
- fetch and return the record) */
- ICP_MATCH,
-
- /** Index tuple is out of the range that we're scanning, e.g. if we're
- scanning "t.key BETWEEN 10 AND 20" and got a "t.key=21" tuple (the engine
- should stop scanning and return HA_ERR_END_OF_FILE right away). */
- ICP_OUT_OF_RANGE
-
-} ICP_RESULT;
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _my_icp_h */