Browse Source

added entry in messege error

pull/7485/head
Roman Tamarov 3 weeks ago
parent
commit
01cce31f12
  1. 2
      weed/filer/filerstore_wrapper.go
  2. 3
      weed/filer/redis3/universal_redis_store.go

2
weed/filer/filerstore_wrapper.go

@ -310,7 +310,7 @@ func (fsw *FilerStoreWrapper) prefixFilterEntries(ctx context.Context, dirPath u
res, resErr := eachEntryFunc(entry)
if resErr != nil {
err = fmt.Errorf("failed to process eachEntryFunc: %w", resErr)
err = fmt.Errorf("failed to process eachEntryFunc for entry %q: %w", entry.Name(), resErr)
return
}

3
weed/filer/redis3/universal_redis_store.go

@ -167,7 +167,8 @@ func (store *UniversalRedis3Store) ListDirectoryEntries(ctx context.Context, dir
resEachEntryFunc, resEachEntryFuncErr := eachEntryFunc(entry)
if resEachEntryFuncErr != nil {
err = fmt.Errorf("failed to process eachEntryFunc: %w", resEachEntryFuncErr)
glog.V(0).InfofCtx(ctx, "failed to process eachEntryFunc for entry %q: %w", entry.Name(), resEachEntryFuncErr)
return false
}
if !resEachEntryFunc {

Loading…
Cancel
Save