Skip to content

Commit 58dbf08

Browse files
fix(fs): forget cache when get link error (#956)
1 parent 05ff790 commit 58dbf08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/op/fs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ func Link(ctx context.Context, storage driver.Driver, path string, args model.Li
295295
fn := func() (*model.Link, error) {
296296
link, err := storage.Link(ctx, file, args)
297297
if err != nil {
298+
linkG.Forget(key)
298299
return nil, errors.Wrapf(err, "failed get link")
299300
}
300301
if link.Expiration != nil {

0 commit comments

Comments
 (0)