mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-31 11:42:30 +00:00
Clarify the effect of InitialMmapSize on Windows platform
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
This commit is contained in:
parent
fd0af9db8c
commit
892aad074e
6
db.go
6
db.go
@ -1259,6 +1259,12 @@ type Options struct {
|
||||
// If <=0, the initial map size is 0.
|
||||
// If initialMmapSize is smaller than the previous database size,
|
||||
// it takes no effect.
|
||||
//
|
||||
// Note: On Windows, due to platform limitations, the database file size
|
||||
// will be immediately resized to match `InitialMmapSize` (aligned to page size)
|
||||
// when the DB is opened. On non-Windows platforms, the file size will grow
|
||||
// dynamically based on the actual amount of written data, regardless of `InitialMmapSize`.
|
||||
// Refer to https://github.com/etcd-io/bbolt/issues/378#issuecomment-1378121966.
|
||||
InitialMmapSize int
|
||||
|
||||
// PageSize overrides the default OS page size.
|
||||
|
Loading…
x
Reference in New Issue
Block a user