Commit db0e3d7b authored by marko's avatar marko

branches/zip: row_scan_and_check_index(): Improve the diagnostics, by reporting

errors from row_search_for_mysql() in the error log.
The errors will still be ignored by CHECK TABLE.
This is somewhat related to Issue #211.
parent e81b47e9
2009-04-23 The InnoDB Team
* row/row0mysql.c:
When scanning indexes, report in the error log any error codes
returned by the search function. These error codes will still be
ignored in CHECK TABLE.
2009-04-23 The InnoDB Team
* include/trx0types.h:
......
......@@ -3971,7 +3971,17 @@ loop:
}
cnt = 1000;
}
if (ret != DB_SUCCESS) {
switch (ret) {
case DB_SUCCESS:
break;
default:
ut_print_timestamp(stderr);
fputs(" InnoDB: Warning: CHECK TABLE on ", stderr);
dict_index_name_print(stderr, prebuilt->trx, index);
fprintf(stderr, " returned %lu\n", ret);
/* fall through (this error is ignored by CHECK TABLE) */
case DB_END_OF_INDEX:
func_exit:
mem_free(buf);
mem_heap_free(heap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment