Skip to content

add bbolt#300

Open
tjungblu wants to merge 1 commit intopingcap:masterfrom
tjungblu:bbolt
Open

add bbolt#300
tjungblu wants to merge 1 commit intopingcap:masterfrom
tjungblu:bbolt

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