diff options
| author | chrislu <chris.lu@gmail.com> | 2022-09-16 23:54:37 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-09-16 23:54:37 -0700 |
| commit | 06748f27714d51235ec8c9b41f91eb6f0545130e (patch) | |
| tree | b98ae48f881befa65f9dda2d7f7fc4f61fb191e0 | |
| parent | cf90f76a35df8c8509ad3ccece566ecb0b74cf66 (diff) | |
| download | seaweedfs-06748f27714d51235ec8c9b41f91eb6f0545130e.tar.xz seaweedfs-06748f27714d51235ec8c9b41f91eb6f0545130e.zip | |
remove unused code
| -rw-r--r-- | weed/storage/volume_read.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/weed/storage/volume_read.go b/weed/storage/volume_read.go index e045137b4..43300dbe7 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 |
