Skip to content

Commit 75296bf

Browse files
committed
fix(store/posixage): always close file lock
Signed-off-by: Johannes Großmann <grossmann.johannes@t-online.de>
1 parent 77cfa87 commit 75296bf

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)