diff options
author | monty@donna.mysql.com <> | 2000-11-21 03:43:34 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-11-21 03:43:34 +0200 |
commit | b65dbb61143e7add58481dc4bc184c530a9a5582 (patch) | |
tree | 18fdf025bea7d918e304f45384902d822f68f2f6 /isam/rprev.c | |
parent | b7d81c037904a6d5d9e4a8602b1c9d5406a23a20 (diff) | |
download | mariadb-git-b65dbb61143e7add58481dc4bc184c530a9a5582.tar.gz |
Fixed problem with auto-repair of MyISAM tables
Fixed bug in ISAM and MyISAM when updating from multiple-processes
Diffstat (limited to 'isam/rprev.c')
-rw-r--r-- | isam/rprev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/isam/rprev.c b/isam/rprev.c index 18b1e31502c..50f22c838fd 100644 --- a/isam/rprev.c +++ b/isam/rprev.c @@ -27,7 +27,7 @@ int nisam_rprev(N_INFO *info, byte *buf, int inx) { - int error; + int error,changed; register uint flag; DBUG_ENTER("nisam_rprev"); @@ -40,9 +40,10 @@ int nisam_rprev(N_INFO *info, byte *buf, int inx) #ifndef NO_LOCKING if (_nisam_readinfo(info,F_RDLCK,1)) DBUG_RETURN(-1); #endif + changed=_nisam_test_if_changed(info); if (!flag) error=_nisam_search_last(info,info->s->keyinfo+inx,info->s->state.key_root[inx]); - else if (_nisam_test_if_changed(info) == 0) + else if (!changed) error=_nisam_search_next(info,info->s->keyinfo+inx,info->lastkey,flag, info->s->state.key_root[inx]); else |