summaryrefslogtreecommitdiff
path: root/myisam/mi_rrnd.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2002-11-25 22:18:44 +0100
committerserg@serg.mysql.com <>2002-11-25 22:18:44 +0100
commit5b57077778d3940d5e35061db4d38f1599fa0774 (patch)
tree02a55f44bad9f485e0d76216a95e10c2aafa692c /myisam/mi_rrnd.c
parent1c8e36d5d4d3968077b1a4f2bf7749d32f594d2e (diff)
downloadmariadb-git-5b57077778d3940d5e35061db4d38f1599fa0774.tar.gz
myisammrg::index_next_same
Diffstat (limited to 'myisam/mi_rrnd.c')
-rw-r--r--myisam/mi_rrnd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/myisam/mi_rrnd.c b/myisam/mi_rrnd.c
index f8009441cff..29f686b0456 100644
--- a/myisam/mi_rrnd.c
+++ b/myisam/mi_rrnd.c
@@ -46,7 +46,10 @@ int mi_rrnd(MI_INFO *info, byte *buf, register my_off_t filepos)
filepos= info->nextpos;
}
- info->lastinx= -1; /* Can't forward or backward */
+ if (info->once_flags & RRND_PRESERVE_LASTINX)
+ info->once_flags&= ~RRND_PRESERVE_LASTINX;
+ else
+ info->lastinx= -1; /* Can't forward or backward */
/* Init all but update-flag */
info->update&= (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);