diff options
author | monty@work.mysql.com <> | 2001-09-02 18:38:33 +0200 |
---|---|---|
committer | monty@work.mysql.com <> | 2001-09-02 18:38:33 +0200 |
commit | 447c18954e904e5770d64ae3b0817a16b9060b74 (patch) | |
tree | 4689ffbe50e97ce9a47deb58fa2b9e7decdfc6a8 /myisam/mi_cache.c | |
parent | 102cabfe4acd9c78fe321829bd168342b3fbd68a (diff) | |
parent | 759cf54a9e70013d92fe18a84b3e4c56244de7da (diff) | |
download | mariadb-git-447c18954e904e5770d64ae3b0817a16b9060b74.tar.gz |
merge with 3.23.42
Diffstat (limited to 'myisam/mi_cache.c')
-rw-r--r-- | myisam/mi_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/mi_cache.c b/myisam/mi_cache.c index 0aae316f23d..6c23916c645 100644 --- a/myisam/mi_cache.c +++ b/myisam/mi_cache.c @@ -76,7 +76,7 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length, DBUG_PRINT("error", ("Error %d reading next-multi-part block (Got %d bytes)", my_errno, info->error)); - if (!my_errno) + if (!my_errno || my_errno == -1) my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); } @@ -93,7 +93,7 @@ int _mi_read_cache(IO_CACHE *info, byte *buff, my_off_t pos, uint length, DBUG_PRINT("error", ("Error %d reading new block (Got %d bytes)", my_errno, (int) read_length)); - if (!my_errno) + if (!my_errno || my_errno == -1) my_errno=HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(1); } |