diff options
Diffstat (limited to 'storage/myisam/mi_rnext_same.c')
-rw-r--r-- | storage/myisam/mi_rnext_same.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/myisam/mi_rnext_same.c b/storage/myisam/mi_rnext_same.c index 1892fe3e1e0..76775dec8ac 100644 --- a/storage/myisam/mi_rnext_same.c +++ b/storage/myisam/mi_rnext_same.c @@ -76,7 +76,8 @@ int mi_rnext_same(MI_INFO *info, uchar *buf) break; } /* Skip rows that are inserted by other threads since we got a lock */ - if (info->lastpos < info->state->data_file_length) + if (info->lastpos < info->state->data_file_length && + (!info->index_cond_func || mi_check_index_cond(info, inx, buf))) break; } } |