4cffc3eb6f43e109452b5b52d1f760cf1ea6a981 jcasper Sun Jun 7 21:47:37 2026 -0700 Adjusting sessionDb and userDb IDs to be 64-bit in the code, since the database is now ready for it and we're crossing the threshold. refs #33554 diff --git src/hg/inc/cartDb.h src/hg/inc/cartDb.h index e996b5206c2..9eb64089a13 100644 --- src/hg/inc/cartDb.h +++ src/hg/inc/cartDb.h @@ -4,49 +4,49 @@ /* Copyright (C) 2014 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifndef CARTDB_H #define CARTDB_H #ifndef JKSQL_H #include "jksql.h" #endif struct cartDb /* A simple id/contents pair for persistent storing of cart variables */ { struct cartDb *next; /* Next in singly linked list. */ - unsigned int id; /* Cart ID */ + unsigned long id; /* Cart ID */ char *contents; /* Contents - encoded variables */ int reserved; /* Reserved, currently always zero. */ char *firstUse; /* First time this was used */ char *lastUse; /* Last time this was used */ int useCount; /* Number of times used */ char *sessionKey; /* Random Key for session security */ }; boolean cartDbHasSessionKey(struct sqlConnection *conn, char *table); /* Check to see if the table has the sessionKey field */ boolean cartDbUseSessionKey(); /* Check settings and and state to determine if sessionKey is in use */ void cartDbSecureId(char *buf, int bufSize, struct cartDb *cartDb); /* Return combined string of session id plus sessionKey in buf if turned on.*/ -unsigned int cartDbParseId(char *id, char **pSessionKey); +unsigned long cartDbParseId(char *id, char **pSessionKey); /* Parse out and return just the numeric id from the id_sessionKey string. */ void cartDbStaticLoad(char **row, struct cartDb *ret); /* Load a row from cartDb table into ret. The contents of ret will * be replaced at the next call to this function. */ struct cartDb *cartDbLoad(char **row); /* Load a cartDb from row fetched with select * from cartDb * from database. Dispose of this with cartDbFree(). */ struct cartDb *cartDbLoadAll(char *fileName); /* Load all cartDb from a tab-separated file. * Dispose of this with cartDbFreeList(). */ struct cartDb *cartDbLoadWhere(struct sqlConnection *conn, char *table, char *where);