c9f42961046e744998bbaf939cfd3e7a37fd117f max Tue Oct 14 02:58:59 2025 -0700 changing how hgcentral connection is treated when an API key is supplied, open a connection and close it right afterwards, to make sure that no sleeping CGIs clog mysql connections, refs #36498 diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index 59f436669f9..520849418c0 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -163,32 +163,32 @@ /* 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 *hConnectCentralNoCache(); +/* open an hgcentral connection, but do not use the cache. Used before the bottleneck call. */ 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