From 77d19e08fc1c513983b9730212e67afd4cd49521 Mon Sep 17 00:00:00 2001 From: royalcat Date: Wed, 19 Jun 2024 00:17:43 +0300 Subject: [PATCH] fix nfs close file on read --- pkg/go-nfs/nfs_onread.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/go-nfs/nfs_onread.go b/pkg/go-nfs/nfs_onread.go index 2d9fd1e..107481a 100644 --- a/pkg/go-nfs/nfs_onread.go +++ b/pkg/go-nfs/nfs_onread.go @@ -52,6 +52,7 @@ func onRead(ctx context.Context, w *response, userHandle Handler) error { } return &NFSStatusError{NFSStatusAccess, err} } + defer fh.Close(ctx) resp := nfsReadResponse{}