Browse Source

filer: rocksdb store report not found correctly

fix https://github.com/seaweedfs/seaweedfs/discussions/3555
pull/3579/head
chrislu 2 years ago
parent
commit
a112cbe44c
  1. 2
      weed/filer/rocksdb/rocksdb_store.go

2
weed/filer/rocksdb/rocksdb_store.go

@ -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()

Loading…
Cancel
Save