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