Source File
types.go
Belonging Package
go.etcd.io/bbolt/internal/common
package commonimport ()// MaxMmapStep is the largest step that can be taken when remapping the mmap.const MaxMmapStep = 1 << 30 // 1GB// Version represents the data file format version.const Version uint32 = 2// Magic represents a marker value to indicate that a file is a Bolt DB.const Magic uint32 = 0xED0CDAEDconst PgidNoFreelist Pgid = 0xffffffffffffffff// IgnoreNoSync specifies whether the NoSync field of a DB is ignored when// syncing changes to a file. This is required as some operating systems,// such as OpenBSD, do not have a unified buffer cache (UBC) and writes// must be synchronized using the msync(2) syscall.const IgnoreNoSync = runtime.GOOS == "openbsd"// Default values if not set in a DB instance.const (DefaultMaxBatchSize int = 1000DefaultMaxBatchDelay = 10 * time.MillisecondDefaultAllocSize = 16 * 1024 * 1024)// DefaultPageSize is the default page size for db which is set to the OS page size.var DefaultPageSize = os.Getpagesize()// Txid represents the internal transaction identifier.type Txid uint64
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |