Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

remove unused code

chrislu06748f27714d
diff --git a/weed/storage/volume_read.go b/weed/storage/volume_read.go
index e045137b47..43300dbe7c 100644
--- a/weed/storage/volume_read.go
+++ b/weed/storage/volume_read.go
@@ -4,7 +4,6 @@ import (
"fmt"
"github.com/seaweedfs/seaweedfs/weed/util/mem"
"io"
- "sync"
"time"
"github.com/seaweedfs/seaweedfs/weed/glog"
@@ -190,14 +189,6 @@ func (v *Volume) readNeedleDataInto(n *needle.Needle, readOption *ReadOption, wr
}
-func synchronizedRead(rwLock *sync.RWMutex, enabled bool, closure func() error) error {
- if enabled {
- rwLock.RLock()
- defer rwLock.RUnlock()
- }
- return closure()
-}
-
func min(x, y int) int {
if x < y {
return x