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

Method closeConn

IceFireDB-SQLite/pkg/mysql/client/pool.go:439–445  ·  view source on GitHub ↗
(conn *Conn)

Source from the content-addressed store, hash-verified

437}
438
439func (pool *Pool) closeConn(conn *Conn) {
440 pool.synchro.Lock()
441 pool.synchro.stats.TotalCount--
442 pool.synchro.Unlock()
443
444 _ = conn.Close() // Closing is not an instant action, so do it outside the lock
445}
446
447func (pool *Pool) startNewConnections(count int) {
448 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