Commit da9bcee2 authored by unknown's avatar unknown

Fix crash due to wrong my_error() call (5.5 after-merge fix).

parent 5d342102
......@@ -331,7 +331,7 @@ bool mysql_lock_tables(THD *thd, MYSQL_LOCK *sql_lock, uint flags)
mysql_unlock_tables(thd, sql_lock, 0);
rc= 1;
}
else if (rc)
else if (rc > 1)
my_error(rc, MYF(0));
thd->set_time_after_lock();
......
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