MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / closeConn

Method closeConn

IceFireDB-SQLProxy/pkg/mysql/client/pool.go:441–447  ·  view source on GitHub ↗
(conn *Conn)

Source from the content-addressed store, hash-verified

439}
440
441func (pool *Pool) closeConn(conn *Conn) {
442 pool.synchro.Lock()
443 pool.synchro.stats.TotalCount--
444 pool.synchro.Unlock()
445
446 _ = conn.Close() // Closing is not an instant action, so do it outside the lock
447}
448
449func (pool *Pool) startNewConnections(count int) error {
450 connections := make([]Connection, 0, count)

Callers 4

GetConnMethod · 0.95
DropConnMethod · 0.95
recheckConnectionsMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected