summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-04-23 02:51:25 +0300
committerunknown <heikki@hundin.mysql.fi>2003-04-23 02:51:25 +0300
commit39734017215569684390e47ce39ffdc55c163b94 (patch)
tree186d9eee14e1b67f93131daa0642d81e795ee6e4 /innobase
parentbd49da260648f674d02eb21035f13aec6c37aeb6 (diff)
downloadmariadb-git-39734017215569684390e47ce39ffdc55c163b94.tar.gz
row0mysql.c:
Give sensible advice to the user if InnoDB notices index corruption innobase/row/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);