Commit 5cedbc86 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4339], have ha_tokudb::print_error log something to error log when error occurs

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@38399 c7de825b-a66e-492c-adef-691d508d4ae1
parent bbd993d9
Branches unavailable
Tags unavailable
No related merge requests found
......@@ -7601,6 +7601,7 @@ int ha_tokudb::final_drop_index(TABLE *table_arg) {
}
void ha_tokudb::print_error(int error, myf errflag) {
THD* thd = ha_thd();
if (error == DB_LOCK_DEADLOCK)
error = HA_ERR_LOCK_DEADLOCK;
if (error == DB_LOCK_NOTGRANTED)
......@@ -7618,6 +7619,11 @@ void ha_tokudb::print_error(int error, myf errflag) {
error = HA_ERR_UNSUPPORTED;
}
#endif
// TODO: should rename debug code to something better
// just reusing this so that tests don' start complaining
if ((tokudb_debug & TOKUDB_DEBUG_HIDE_DDL_LOCK_ERRORS) == 0) {
sql_print_error("query \"%s\" returned handler error %d", thd->query_string.str, error);
}
handler::print_error(error, errflag);
}
......
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