fix bug in Get impl of ForestDB store
This commit is contained in:
parent
1c4726c16d
commit
eac4dee56d
@ -27,7 +27,11 @@ func Open(path string) (*ForestDBStore, error) {
|
||||
}
|
||||
|
||||
func (f *ForestDBStore) Get(key []byte) ([]byte, error) {
|
||||
return f.db.GetKV(key)
|
||||
res, err := f.db.GetKV(key)
|
||||
if err != nil && err != forestdb.RESULT_KEY_NOT_FOUND {
|
||||
return nil, err
|
||||
}
|
||||
return res, nil
|
||||
}
|
||||
|
||||
func (f *ForestDBStore) Set(key, val []byte) error {
|
||||
|
Loading…
Reference in New Issue
Block a user