diff options
| author | Chris Lu <chris.lu@gmail.com> | 2016-06-02 11:06:05 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2016-06-02 11:06:05 -0700 |
| commit | caeffa3998adc060fa66c4cd77af971ff2d26c57 (patch) | |
| tree | 5a0f45c095b4fc65c9cf17561d1a83a315172421 /go/util | |
| parent | 6df18a918103634fd4e5e3297e9d2b1597ec5b73 (diff) | |
| download | seaweedfs-caeffa3998adc060fa66c4cd77af971ff2d26c57.tar.xz seaweedfs-caeffa3998adc060fa66c4cd77af971ff2d26c57.zip | |
add missing unlock()!!!!!
Diffstat (limited to 'go/util')
| -rw-r--r-- | go/util/concurrent_read_map.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/go/util/concurrent_read_map.go b/go/util/concurrent_read_map.go index bbf303d82..28b6ae0f1 100644 --- a/go/util/concurrent_read_map.go +++ b/go/util/concurrent_read_map.go @@ -49,6 +49,7 @@ func (m *ConcurrentReadMap) Items() (itemsCopy []interface{}) { for _, i := range m.items { itemsCopy = append(itemsCopy, i) } + m.RUnlock() return itemsCopy } |
