Skip to content

Commit f580386

Browse files
authored
Merge pull request #488 from docker/fix/posixage
fix(store/posixage): always close file lock
2 parents 77cfa87 + 75296bf commit f580386

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

store/posixage/internal/flock/flock.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ func tryLock(ctx context.Context, root *os.Root, exclusive bool) (UnlockFunc, er
8989
return nil, err
9090
}
9191
// recovery was successful. Let's try get another lock one last time.
92-
if err := retryLock(ctx, fl, exclusive); err != nil {
92+
err = retryLock(ctx, fl, exclusive)
93+
if err != nil {
9394
return nil, err
9495
}
9596

0 commit comments

Comments
 (0)