MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / Postgresql

Struct Postgresql

store/engine/postgresql/postgresql.go:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56type Postgresql struct {
57 db *sql.DB
58 listener *pq.Listener
59
60 leaderMu sync.Mutex
61 leaderID string
62 myID string
63 electPath string
64 isReady atomic.Bool
65
66 quitCh chan struct{}
67 wg sync.WaitGroup
68 lockReleaseCh chan bool
69 leaderChangeCh chan bool
70}
71
72func New(id string, cfg *Config) (*Postgresql, error) {
73 if len(id) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected