-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
[BUG] incorrect level information of hit file in Version::Get() #6912
Comments
These Lines 5675 to 5689 in 14eca6b
level parameter may be used for other things one day, so hopefully we can trust it is correct..
edit: Oh, I just realized you also reported the other problems in #6667. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
Version::Get()
, once hit a file, callsto get this file.
fp.GetCurrentLevel()
should refer to which level this file belongs to. But actuallyfp.GetCurrentLevel()
does not represent the level that the file belongs to.In
fp.GetNextFile()
,if hit a file, it firstly calls
PrepareNextLevel()
, which will increasecurr_level_
, then returnf
. After returningf
, thecurr_level_
does not refer to which levelf
belongs to, and it points to the next level.I think it should change
fp.GetCurrentLevel()
tofp.GetHitFileLevel()
inThe text was updated successfully, but these errors were encountered: