mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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() {
|
func (n *netPerfRX) Reset() {
|
||||||
n.RLock()
|
n.Lock()
|
||||||
defer n.RUnlock()
|
defer n.Unlock()
|
||||||
n.RX = 0
|
n.RX = 0
|
||||||
n.RXSample = 0
|
n.RXSample = 0
|
||||||
n.lastToConnect = time.Time{}
|
n.lastToConnect = time.Time{}
|
||||||
|
Loading…
Reference in New Issue
Block a user