fix nfs close file on read
All checks were successful
docker / build-docker (linux/amd64) (push) Successful in 1m37s
docker / build-docker (linux/arm64) (push) Successful in 5m47s

This commit is contained in:
royalcat 2024-06-19 00:17:43 +03:00
parent 2d72790c1a
commit 77d19e08fc

View file

@ -52,6 +52,7 @@ func onRead(ctx context.Context, w *response, userHandle Handler) error {
} }
return &NFSStatusError{NFSStatusAccess, err} return &NFSStatusError{NFSStatusAccess, err}
} }
defer fh.Close(ctx)
resp := nfsReadResponse{} resp := nfsReadResponse{}