mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-29 10:42:09 +00:00
fix overflow breaking 32-bit test builds
This commit is contained in:
parent
12923fe56c
commit
1ab9756653
@ -370,7 +370,7 @@ func TestDB_Open_InitialMmapSize(t *testing.T) {
|
||||
path := tempfile()
|
||||
defer os.Remove(path)
|
||||
|
||||
initMmapSize := 1 << 31 // 2GB
|
||||
initMmapSize := 1 << 30 // 1GB
|
||||
testWriteSize := 1 << 27 // 134MB
|
||||
|
||||
db, err := bolt.Open(path, 0666, &bolt.Options{InitialMmapSize: initMmapSize})
|
||||
|
Loading…
x
Reference in New Issue
Block a user