-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
16 lines (14 loc) · 784 Bytes
/
errors.go
File metadata and controls
16 lines (14 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package bitcask
import "errors"
var (
ErrKeyIsEmpty = errors.New("the key is empty")
ErrIndexUpdateFailed = errors.New("failed to update index")
ErrKeyNotFound = errors.New("key not found in database")
ErrDataFileNotFound = errors.New("data file is not found")
ErrDataDirectoryCorrupted = errors.New("the database directory maybe corrupted")
ErrExceedMaxBatchNum = errors.New("exceed the max batch num")
ErrMergeIsProgress = errors.New("merge is in progress, try again later")
ErrDatabaseIsUsing = errors.New("the database directory is used by another process")
ErrMergeRatioUnreached = errors.New("the merge ratio do not reach the option")
ErrNoEnoughSpaceForMerge = errors.New("no enough disk space for merge")
)