0
0

fix bug in Get impl of ForestDB store

This commit is contained in:
Marty Schoch 2014-05-16 10:08:23 -04:00
parent 1c4726c16d
commit eac4dee56d

View File

@ -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 {