mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-04-27 21:23:15 +00:00
This commit adds Windows support to Bolt. Windows memory maps return an address instead of a byte slice so the DB.data field had to be refactored to be a pointer to a large byte array.
5 lines
118 B
Go
5 lines
118 B
Go
package bolt
|
|
|
|
// maxMapSize represents the largest mmap size supported by Bolt.
|
|
const maxMapSize = 0xFFFFFFF // 256MB
|