Skip to content

fix scan bug#450

Open
wangyj1203 wants to merge 4 commits intoTencent:unstablefrom
wangyj1203:unstable
Open

fix scan bug#450
wangyj1203 wants to merge 4 commits intoTencent:unstablefrom
wangyj1203:unstable

Conversation

@wangyj1203
Copy link

Scan非db0的数据时,会出现scan返回数据缺失的问题

nextSlot+1后,scan到的slot可能是比nextSlot大,导致迭代到的第一个key可能是新slot的第一个key,该key的dbId大概率是0,导致其他dbId的数据只能scan到一个slot的数据

所以当cursor seek到下一个slot时,如果slot不是指定的prefix,那就从这个slot的需要的db重新查一次

nextSlot+1后,scan到的slot可能是比nextSlot大,导致迭代到的第一个key可能是新slot的第一个key,该key的dbId大概率是0,导致其他dbId的数据只能scan到一个slot的数据
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant