diff options
Diffstat (limited to 'weed/filer/tarantool/tarantool_store.go')
| -rw-r--r-- | weed/filer/tarantool/tarantool_store.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/weed/filer/tarantool/tarantool_store.go b/weed/filer/tarantool/tarantool_store.go index 4c9f8a600..1bcd31830 100644 --- a/weed/filer/tarantool/tarantool_store.go +++ b/weed/filer/tarantool/tarantool_store.go @@ -305,7 +305,14 @@ func (store *TarantoolStore) ListDirectoryEntries(ctx context.Context, dirPath w glog.V(0).InfofCtx(ctx, "list %s : %v", entry.FullPath, err) break } - if !eachEntryFunc(entry) { + + resEachEntryFunc, resEachEntryFuncErr := eachEntryFunc(entry) + if resEachEntryFuncErr != nil { + err = fmt.Errorf("failed to process eachEntryFunc: %w", resEachEntryFuncErr) + break + } + + if !resEachEntryFunc { break } } |
