public

package
v0.0.0-...-6438891 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MergeDirName          = "merge"
	FileLockName          = "flock"
	DataFileNameSuffix    = ".cly"
	HintFileName          = "hint-index"
	MergeFinishedFileName = "merge-finished"
)

Variables

View Source
var (
	ErrKeyIsEmpty             = errors.New("the key can not be empty")
	ErrKeyIsControlChar       = errors.New("the key can not be control char (ASCII 0~31 || 127)")
	ErrUpdateIndexFailed      = errors.New("update memTable failed")
	ErrKeyNotFound            = errors.New("the key not found")
	ErrKeyExist               = errors.New("the key already exists")
	ErrInMerging              = errors.New("process is in merging")
	ErrDirOccupied            = errors.New("db directory is occupied")
	ErrInvalidCRC             = errors.New("invalid crc value, logRecord maybe corrupted")
	ErrLuaInterpreterDisabled = errors.New("the lua Interpreter is not started, can not support execute lua script")
	ErrTransactionConflict    = errors.New("transaction concurrency conflict, please try again")
	ErrHeapEmpty              = errors.New("heap is empty")
	ErrTxnFnEmpty             = errors.New("the txn fn is empty")
	ErrUpdateInReadOnlyTxn    = errors.New("the read only txn can't update")
	ErrTxnArgsWrong           = errors.New("the args are wrong")
	ErrListIsEmpty            = errors.New("the list is empty")
)
View Source
var (
	// MERGE_FIN_Key This key is used to mark the completion of the merge
	MERGE_FIN_Key = []byte{0x07}

	// TX_COMMIT_KEY This key is used to mark the commit of the transaction
	TX_COMMIT_KEY = []byte{0x04}

	// TX_ROLLBACK_KEY This key is used to mark the rollback of the transaction
	TX_ROLLBACK_KEY = []byte{0x15}

	// TX_BEGIN_KEY This key is used to mark the begin of the transaction
	TX_BEGIN_KEY = []byte{0x12}
)
View Source
var (
	NO_TX_ID int64 = 0
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL