Skip to content

Go version depend bucket header size that may cuase go version upgrade issuse for DB #1133

@udan-jayanith

Description

@udan-jayanith

In go.etcd.io/bbolt/internal/common bucket header size is

const BucketHeaderSize = int(unsafe.Sizeof(InBucket{}))

"unsafe package may be non-portable and are not protected by the Go 1 compatibility guidelines."
https://pkg.go.dev/unsafe#pkg-overview
So header size for structs might change in the future Go versions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions