From 186b1f029bcd67840803d8b611c571c186f52680 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 23 Sep 2023 10:33:44 -0700 Subject: [PATCH] read source uses shared lock --- weed/mount/weedfs_file_copy_range.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/mount/weedfs_file_copy_range.go b/weed/mount/weedfs_file_copy_range.go index 50a2d5a95..43ec289ab 100644 --- a/weed/mount/weedfs_file_copy_range.go +++ b/weed/mount/weedfs_file_copy_range.go @@ -53,7 +53,7 @@ func (wfs *WFS) CopyFileRange(cancel <-chan struct{}, in *fuse.CopyFileRangeIn) } if fhIn.fh != fhOut.fh { - fhInActiveLock := fhIn.wfs.fhLockTable.AcquireLock("CopyFileRange", fhIn.fh, util.ExclusiveLock) + fhInActiveLock := fhIn.wfs.fhLockTable.AcquireLock("CopyFileRange", fhIn.fh, util.SharedLock) defer fhIn.wfs.fhLockTable.ReleaseLock(fhIn.fh, fhInActiveLock) }