1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for a segfault in my previous cset (about WL#2712 and WL#2977).

This commit is contained in:
guilhem@mysql.com
2006-02-26 00:03:52 +01:00
parent eb4688330d
commit 3f3473cfb5
2 changed files with 3 additions and 2 deletions

View File

@ -1576,6 +1576,8 @@ int log_loaded_block(IO_CACHE* file)
if (!(block_len = (char*) file->read_end - (char*) buffer))
return 0;
lf_info = (LOAD_FILE_INFO*) file->arg;
if (lf_info->thd->current_stmt_binlog_row_based)
return 0;
if (lf_info->last_pos_in_file != HA_POS_ERROR &&
lf_info->last_pos_in_file >= file->pos_in_file)
return 0;