-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: sync pebble db from bsc #51
Conversation
l.FilterType = pebble.TableFilter | ||
if i > 0 { | ||
l.TargetFileSize = opt.Levels[i-1].TargetFileSize * 2 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it it expected to be anelse
branch here? to initial TargetFilesSize of levels[0] ?
if i > 0 {
l.TargetFileSize = opt.Levels[i-1].TargetFileSize * 2
} else {
l.TargetFileSize = xxx
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If TargetFileSize == 0, will be set default TargetFileSize = 2MB in EnsureDefaults func~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: wayen <2229306838@qq.com>
Description
Cherry-pick pebble-related pr from bsc.
bnb-chain/bsc#1979
bnb-chain/bsc#2072
bnb-chain/bsc#2120
Rationale
N/A.
Example
N/A.
Changes
Notable changes: