mirror of https://github.com/etcd-io/bbolt.git
Merge pull request #315 from benbjohnson/max-alloc
Increase max array pointer size to 2GB.pull/34/head
commit
1d9315e35b
2
page.go
2
page.go
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
const pageHeaderSize = int(unsafe.Offsetof(((*page)(nil)).ptr))
|
const pageHeaderSize = int(unsafe.Offsetof(((*page)(nil)).ptr))
|
||||||
|
|
||||||
const maxAllocSize = 0xFFFFFFF
|
const maxAllocSize = 0x7FFFFFFF
|
||||||
const minKeysPerPage = 2
|
const minKeysPerPage = 2
|
||||||
|
|
||||||
const branchPageElementSize = int(unsafe.Sizeof(branchPageElement{}))
|
const branchPageElementSize = int(unsafe.Sizeof(branchPageElement{}))
|
||||||
|
|
Loading…
Reference in New Issue