Commit d46aee70 authored by Michael Widenius's avatar Michael Widenius

Fixed compiler and build error:

- Fixed main.mysqlcheck error on windows
- Fixed 'can't drop database pbxt' failure when running pbxt.mysqlslap


sql/table.cc:
  When using not legal file names for checking a non existing table, one got a warning in the log file which caused mysql.mysqlcheck to fail
storage/innodb_plugin/row/row0upd.c:
  Fixed compiler warning
storage/pbxt/src/table_xt.cc:
  Remove table that is dropped from 'repair-pending'.
  Fixed 'can't drop database pbxt' failure when running pbxt.mysqlslap
parent 07b5d554
...@@ -2217,13 +2217,17 @@ void open_table_error(TABLE_SHARE *share, int error, int db_errno, int errarg) ...@@ -2217,13 +2217,17 @@ void open_table_error(TABLE_SHARE *share, int error, int db_errno, int errarg)
{ {
int err_no; int err_no;
char buff[FN_REFLEN]; char buff[FN_REFLEN];
myf errortype= ME_ERROR+ME_WAITTANG; myf errortype= ME_ERROR+ME_WAITTANG; // Write fatals error to log
DBUG_ENTER("open_table_error"); DBUG_ENTER("open_table_error");
switch (error) { switch (error) {
case 7: case 7:
case 1: case 1:
if (db_errno == ENOENT) /*
Test if file didn't exists. We have to also test for EINVAL as this
may happen on windows when opening a file with a not legal file name
*/
if (db_errno == ENOENT || db_errno == EINVAL)
my_error(ER_NO_SUCH_TABLE, MYF(0), share->db.str, share->table_name.str); my_error(ER_NO_SUCH_TABLE, MYF(0), share->db.str, share->table_name.str);
else else
{ {
......
...@@ -1224,7 +1224,7 @@ row_upd_changes_ord_field_binary( ...@@ -1224,7 +1224,7 @@ row_upd_changes_ord_field_binary(
const upd_field_t* upd_field; const upd_field_t* upd_field;
const dfield_t* dfield; const dfield_t* dfield;
dfield_t dfield_ext; dfield_t dfield_ext;
ulint dfield_len; ulint dfield_len= 0;
const byte* buf; const byte* buf;
ind_field = dict_index_get_nth_field(index, i); ind_field = dict_index_get_nth_field(index, i);
......
...@@ -1755,6 +1755,8 @@ xtPublic void xt_drop_table(XTThreadPtr self, XTPathStrPtr tab_name, xtBool drop ...@@ -1755,6 +1755,8 @@ xtPublic void xt_drop_table(XTThreadPtr self, XTPathStrPtr tab_name, xtBool drop
tab_close_mapped_files(self, tab); tab_close_mapped_files(self, tab);
tab_delete_table_files(self, tab_name, tab_id); tab_delete_table_files(self, tab_name, tab_id);
/* Remove table from "repair-pending" */
xt_tab_table_repaired(tab);
ASSERT(xt_get_self() == self); ASSERT(xt_get_self() == self);
if ((te_ptr = (XTTableEntryPtr) xt_sl_find(self, db->db_table_by_id, &tab_id))) { if ((te_ptr = (XTTableEntryPtr) xt_sl_find(self, db->db_table_by_id, &tab_id))) {
......
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