mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
netPerfRX Reset() should use write Lock() (#16043)
This commit is contained in:
parent
e32b948a49
commit
bdcb485740
@ -261,8 +261,8 @@ func (n *netPerfRX) ActiveConnections() uint64 {
|
||||
}
|
||||
|
||||
func (n *netPerfRX) Reset() {
|
||||
n.RLock()
|
||||
defer n.RUnlock()
|
||||
n.Lock()
|
||||
defer n.Unlock()
|
||||
n.RX = 0
|
||||
n.RXSample = 0
|
||||
n.lastToConnect = time.Time{}
|
||||
|
Loading…
Reference in New Issue
Block a user