-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(bench): bring in benchmark fixes from main #1863
Conversation
e6eb700
to
6b0349a
Compare
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.
mostly looks good, a few nits.
badger/cmd/pick_table_bench.go
Outdated
if err != nil { | ||
return y.Wrapf(err, "unable to open DB") | ||
} | ||
defer db.Close() |
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.
let's log the warning here in case close fails
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.
replaced with
defer func() {
y.Check(db.Close())
}()
Cherry pick of #1699 and #1741.