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