From 976a6eb3d570beaa90923f54869686ef9304be71 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 19 Nov 2025 13:54:23 -0800 Subject: [PATCH] empty vs no data --- weed/filer/foundationdb/foundationdb_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filer/foundationdb/foundationdb_store.go b/weed/filer/foundationdb/foundationdb_store.go index 761db2e78..55374d029 100644 --- a/weed/filer/foundationdb/foundationdb_store.go +++ b/weed/filer/foundationdb/foundationdb_store.go @@ -246,7 +246,7 @@ func (store *FoundationDBStore) FindEntry(ctx context.Context, fullpath util.Ful return nil, fmt.Errorf("find entry %s: %w", fullpath, err) } - if len(data) == 0 { + if data == nil { return nil, filer_pb.ErrNotFound } @@ -519,7 +519,7 @@ func (store *FoundationDBStore) KvGet(ctx context.Context, key []byte) ([]byte, if err != nil { return nil, fmt.Errorf("kv get %s: %w", string(key), err) } - if len(data) == 0 { + if data == nil { return nil, filer.ErrKvNotFound }