85e8f7400bfa53d4189f56729b3a12718f734125 max Mon Oct 13 14:20:01 2025 -0700 closing all hgcentral mysql connections before botDelay sleeping, refs #36498 diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index 3e192a47ee6..59f436669f9 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -163,30 +163,33 @@ /* Allocate a connection to db and table, spec is in form `db.table'; if * defaultDb is not NULL, 'table' can also be used. Also returns pointer to * table in spec string. */ void hFreeConn(struct sqlConnection **pConn); /* Put back connection for reuse. */ struct sqlConnection *hConnectCentral(void); /* Connect to central database where user info and other info * not specific to a particular genome lives. Free this up * with hDisconnectCentral(). */ void hDisconnectCentral(struct sqlConnection **pConn); /* Put back connection for reuse. */ +void hFreeAllCentral(); +/* disconnect and free all connections in the hgCentral connection cache */ + struct sqlConnection *hConnectCart(void); /* Connect to cart database. Defaults to the central connection * unless cart.db or cart.host are configured. Free this * up with hDisconnectCart(). */ void hDisconnectCart(struct sqlConnection **pConn); /* Put back connection for reuse. */ char *hgOfficialChromName(char *db, char *name); /* Returns "cannonical" name of chromosome or NULL * if not a chromosome. */ boolean hgIsOfficialChromName(char *db, char *name); /* Determine if name is exact (case-sensitive) match with * a chromosome in the current assembly */