Commit 8c125455 authored by msvensson@neptunus.(none)'s avatar msvensson@neptunus.(none)

Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0

into  neptunus.(none):/home/msvensson/mysql/bug12527/my50-bug12527
parents f34398ba bb54b305
...@@ -258,7 +258,7 @@ int ha_archive::write_data_header(gzFile file_to_write) ...@@ -258,7 +258,7 @@ int ha_archive::write_data_header(gzFile file_to_write)
data_buffer[1]= (uchar)ARCHIVE_VERSION; data_buffer[1]= (uchar)ARCHIVE_VERSION;
if (gzwrite(file_to_write, &data_buffer, DATA_BUFFER_SIZE) != if (gzwrite(file_to_write, &data_buffer, DATA_BUFFER_SIZE) !=
sizeof(DATA_BUFFER_SIZE)) DATA_BUFFER_SIZE)
goto error; goto error;
DBUG_PRINT("ha_archive::write_data_header", ("Check %u", (uint)data_buffer[0])); DBUG_PRINT("ha_archive::write_data_header", ("Check %u", (uint)data_buffer[0]));
DBUG_PRINT("ha_archive::write_data_header", ("Version %u", (uint)data_buffer[1])); DBUG_PRINT("ha_archive::write_data_header", ("Version %u", (uint)data_buffer[1]));
......
...@@ -2388,11 +2388,16 @@ send_result_message: ...@@ -2388,11 +2388,16 @@ send_result_message:
} }
default: // Probably HA_ADMIN_INTERNAL_ERROR default: // Probably HA_ADMIN_INTERNAL_ERROR
protocol->store("error", 5, system_charset_info); {
protocol->store("Unknown - internal error during operation", 41 char buf[ERRMSGSIZE+20];
, system_charset_info); uint length=my_snprintf(buf, ERRMSGSIZE,
fatal_error=1; "Unknown - internal error %d during operation",
break; result_code);
protocol->store("error", 5, system_charset_info);
protocol->store(buf, length, system_charset_info);
fatal_error=1;
break;
}
} }
if (fatal_error) if (fatal_error)
table->table->s->version=0; // Force close of table table->table->s->version=0; // Force close of table
......
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