I used scan command to get all matched keys, but when the cursor equals zero, i found that the number of key did not equals the number it should be . for example, there are 10,000,000 keys which match the pattern "scanTest*",then i executed scan command util the cursor equals zero, but i can't get all the 10,000,000 keys, few keys missed by scan. and also , i did't add or delete key when executing scan command. but, if the number of keys is less than 10,000,000, like 10,000 , all the keys can be return by scan. I am so confused about this, someone can tell me why was that? thanks in advance !
Comment From: antirez
We found a related bug, but only when the dictionary becomes smaller, maybe a rehashing was in progress. A fix was just pushed in all the branches. Could you merge the fix and check if you can reproduce again? Thanks!