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.
Click to show internal directories.
Click to hide internal directories.