Skip to content
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

add bbolt #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add bbolt #300

wants to merge 1 commit into from

Conversation

tjungblu
Copy link
Contributor

@tjungblu tjungblu commented Jun 6, 2024

Hey folks,

after etcd we also want to add bbolt to ycsb (etcd-io/bbolt#750) - which is luckily already available in similar fashion as boltdb. It's mostly copy&paste, I merely added a new freelist option that's used in bbolt exclusively.

Thanks,
Thomas

Comment on lines +177 to +194
data, err := db.r.Decode(value, nil)
if err != nil {
return err
}

for field, value := range values {
data[field] = value
}

buf := db.bufPool.Get()
defer func() {
db.bufPool.Put(buf)
}()

buf, err = db.r.Encode(buf, data)
if err != nil {
return err
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these operations (e.g. Decode, Encode, etc) have nothing to do with bbolt?

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.

2 participants