Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bolt_aix.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"time"
"unsafe"

"go.etcd.io/bbolt/internal/common"
Copy link
Member

Choose a reason for hiding this comment

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

This import item should be put in a separate group. It seems that the bbolt workflow can't detect such minor issue.

cc @Elbehery @ivanvc

"golang.org/x/sys/unix"
)

Expand Down Expand Up @@ -69,7 +70,7 @@ func mmap(db *DB, sz int) error {

// Save the original byte slice and convert to a byte array pointer.
db.dataref = b
db.data = (*[maxMapSize]byte)(unsafe.Pointer(&b[0]))
db.data = (*[common.MaxMapSize]byte)(unsafe.Pointer(&b[0]))
db.datasz = sz
return nil
}
Expand Down
3 changes: 2 additions & 1 deletion bolt_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"
"unsafe"

"go.etcd.io/bbolt/internal/common"
"golang.org/x/sys/unix"
)

Expand Down Expand Up @@ -69,7 +70,7 @@ func mmap(db *DB, sz int) error {

// Save the original byte slice and convert to a byte array pointer.
db.dataref = b
db.data = (*[maxMapSize]byte)(unsafe.Pointer(&b[0]))
db.data = (*[common.MaxMapSize]byte)(unsafe.Pointer(&b[0]))
db.datasz = sz
return nil
}
Expand Down
3 changes: 2 additions & 1 deletion bolt_solaris.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"
"unsafe"

"go.etcd.io/bbolt/internal/common"
"golang.org/x/sys/unix"
)

Expand Down Expand Up @@ -67,7 +68,7 @@ func mmap(db *DB, sz int) error {

// Save the original byte slice and convert to a byte array pointer.
db.dataref = b
db.data = (*[maxMapSize]byte)(unsafe.Pointer(&b[0]))
db.data = (*[common.MaxMapSize]byte)(unsafe.Pointer(&b[0]))
db.datasz = sz
return nil
}
Expand Down