filer: rocksdb store report not found correctly

fix https://github.com/seaweedfs/seaweedfs/discussions/3555
This commit is contained in:
chrislu 2022-09-01 15:42:59 -07:00
parent 5afc20dbd3
commit a112cbe44c

View file

@ -123,7 +123,7 @@ func (store *RocksDBStore) FindEntry(ctx context.Context, fullpath weed_util.Ful
key := genKey(dir, name)
data, err := store.db.Get(store.ro, key)
if data == nil {
if data == nil || !data.Exists() {
return nil, filer_pb.ErrNotFound
}
defer data.Free()