mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
admin: ServerInfo() returns info for each node (#4150)
ServerInfo() will gather information from all nodes before returning it back to the client.
This commit is contained in:
committed by
Harshavardhana
parent
df346753e1
commit
83abad0b37
@@ -121,7 +121,9 @@ func (c *ConnMux) PeekProtocol() (string, error) {
|
||||
// bytes received from the client.
|
||||
func (c *ConnMux) Read(b []byte) (n int, err error) {
|
||||
// Update total incoming number of bytes.
|
||||
defer globalConnStats.incInputBytes(n)
|
||||
defer func() {
|
||||
globalConnStats.incInputBytes(n)
|
||||
}()
|
||||
|
||||
n, err = c.peeker.Read(b)
|
||||
if err != nil {
|
||||
@@ -141,7 +143,9 @@ func (c *ConnMux) Read(b []byte) (n int, err error) {
|
||||
// keeps track of the total bytes written by the server.
|
||||
func (c *ConnMux) Write(b []byte) (n int, err error) {
|
||||
// Update total outgoing number of bytes.
|
||||
defer globalConnStats.incOutputBytes(n)
|
||||
defer func() {
|
||||
globalConnStats.incOutputBytes(n)
|
||||
}()
|
||||
|
||||
// Call the conn write wrapper.
|
||||
return c.Conn.Write(b)
|
||||
|
||||
Reference in New Issue
Block a user