mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-07-13 15:49:07 +00:00
Disabled linter on field 'dataref'
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
parent
d04dc0c2d0
commit
99fe21f5e0
3
db.go
3
db.go
@ -129,6 +129,9 @@ type DB struct {
|
||||
path string
|
||||
openFile func(string, int, os.FileMode) (*os.File, error)
|
||||
file *os.File
|
||||
// `dataref` isn't used at all on Windows, and the golangci-lint
|
||||
// always fails on Windows platform.
|
||||
//nolint
|
||||
dataref []byte // mmap'ed readonly, write throws SEGV
|
||||
data *[maxMapSize]byte
|
||||
datasz int
|
||||
|
Loading…
x
Reference in New Issue
Block a user