From a112cbe44c95d4685aefa43c27279e5aafb4b04c Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 1 Sep 2022 15:42:59 -0700 Subject: [PATCH] filer: rocksdb store report not found correctly fix https://github.com/seaweedfs/seaweedfs/discussions/3555 --- weed/filer/rocksdb/rocksdb_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/rocksdb/rocksdb_store.go b/weed/filer/rocksdb/rocksdb_store.go index 64de3ec08..45bee62f7 100644 --- a/weed/filer/rocksdb/rocksdb_store.go +++ b/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()