-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RedisIterator skips first key when it.Next() is called #394
Comments
Oh damn, that's embarassing. That should've been covered by a test. Thanks for the hint, will take care of that as soon as possible. Unless you want to give it a shot 🙄 |
No worries! I'm working on a PR now, just adding tests 👍 |
Awesome, thanks a lot! |
Upon further inspection, it appears the contract for storage.Iterator is that |
VisitValues
does not process the first element from the table iterator
Now that you mention it, there was a similar discussion in PR 320 when fixing differences between different storages using I guess we should improve the iterator here and there:
|
The Processor.VisitValues function expects it.Next() to be called before accessing any keys. The
redisIterator
doesn't behave this way and will instead skip over the first key.The text was updated successfully, but these errors were encountered: