Documentation
¶
Index ¶
Constants ¶
View Source
const ( // invalid page id InvalidPageID = -1 // invalid transaction id InvalidTxnID = -1 // invalid log sequence number InvalidLSN = -1 // the header page id HeaderPageID = 0 // size of a data page in byte PageSize = 4096 // size of buffer pool BufferPoolSize = 10 // size of a log buffer in byte LogBufferSize = ((BufferPoolSize + 1) * PageSize) // size of extendible hash bucket BucketSize = 50 )
View Source
const (
MaxReaders = math.MaxUint32
)
Variables ¶
View Source
var CycleDetectionInterval time.Duration
View Source
var EnableDebug bool = false
View Source
var EnableLogging bool = false
View Source
var LogTimeout time.Duration
Functions ¶
Types ¶
type ReaderWriterLatch ¶
type ReaderWriterLatch interface {
WLock()
WUnlock()
RLock()
RUnlock()
}
func NewRWLatch ¶
func NewRWLatch() ReaderWriterLatch
type SH_Mutex ¶
type SH_Mutex struct {
// contains filtered or unexported fields
}
func NewSH_Mutex ¶
func NewSH_Mutex() *SH_Mutex
Click to show internal directories.
Click to hide internal directories.