summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2003-04-23 02:51:25 +0300
committerheikki@hundin.mysql.fi <>2003-04-23 02:51:25 +0300
commit32a987834fbbec88c225231b7227ef9c6dedb901 (patch)
tree186d9eee14e1b67f93131daa0642d81e795ee6e4 /innobase
parent2705a9e91fb5af292695723203d7fe2e3f4a0696 (diff)
downloadmariadb-git-32a987834fbbec88c225231b7227ef9c6dedb901.tar.gz
row0mysql.c:
Give sensible advice to the user if InnoDB notices index corruption
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0mysql.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c
index af4f484b43d..db1119a2abc 100644
--- a/innobase/row/row0mysql.c
+++ b/innobase/row/row0mysql.c
@@ -276,6 +276,17 @@ handle_new_error:
"InnoDB: my.cnf and restart the database.\n");
exit(1);
+ } else if (err == DB_CORRUPTION) {
+
+ fprintf(stderr,
+ "InnoDB: We detected index corruption in an InnoDB type table.\n"
+ "InnoDB: You have to dump + drop + reimport the table or, in\n"
+ "InnoDB: a case of widespread corruption, dump all InnoDB\n"
+ "InnoDB: tables and recreate the whole InnoDB tablespace.\n"
+ "InnoDB: If the mysqld server crashes after the startup or when\n"
+ "InnoDB: you dump the tables, look at section 6.1 of\n"
+ "InnoDB: http://www.innodb.com/ibman.html for help.\n");
+
} else {
fprintf(stderr, "InnoDB: unknown error code %lu\n", err);
ut_a(0);