etcd-io / etcd-io/bbolt

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

Open
#1,133 1 comment 0 reactions 0 assignees View on GitHub
stage/tracked
Dominant language
Go
Stars
9.7k
Forks
753
Avg merge
1d 8h
Merged PRs (30d)
18

Description

In `` go.etcd.io/bbolt/internal/common`` bucket header size is
```go
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.