mirror of https://github.com/etcd-io/bbolt.git
fix comment bug: minium db mmapSize is 1MB instead of 4MB
parent
4d30731e91
commit
20852b29c4
2
db.go
2
db.go
|
@ -244,7 +244,7 @@ func (db *DB) munmap() error {
|
|||
}
|
||||
|
||||
// mmapSize determines the appropriate size for the mmap given the current size
|
||||
// of the database. The minimum size is 4MB and doubles until it reaches 1GB.
|
||||
// of the database. The minimum size is 1MB and doubles until it reaches 1GB.
|
||||
// Returns an error if the new mmap size is greater than the max allowed.
|
||||
func (db *DB) mmapSize(size int) (int, error) {
|
||||
// Double the size from 1MB until 1GB.
|
||||
|
|
Loading…
Reference in New Issue