06d7be056190c14b85e71bc12523f18ea6815b5e markd Mon Dec 7 00:50:29 2020 -0800 BLAT mmap index support merge with master diff --git src/hg/lib/cartDb.c src/hg/lib/cartDb.c index 1626ea4..c042c53 100644 --- src/hg/lib/cartDb.c +++ src/hg/lib/cartDb.c @@ -299,30 +299,40 @@ if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->lastUse); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%d", el->useCount); if (cartDbUseSessionKey()) { fputc(sep,f); fprintf(f, "%s", el->sessionKey); } fputc(lastSep,f); } +char *defaultCartTable() +/* Return the name of the defaultCart table. */ +{ +static char *defaultCartTable = NULL; +if (defaultCartTable == NULL) + defaultCartTable = cfgOptionEnvDefault("HGDB_DEFAULTCARTTABLE", + defaultCartTableConfVariable, defaultDefaultCartTableName); +return defaultCartTable; +} + char *userDbTable() /* Return the name of the userDb table. */ { static char *userDbTable = NULL; if (userDbTable == NULL) userDbTable = cfgOptionEnvDefault("HGDB_USERDBTABLE", userDbTableConfVariable, defaultUserDbTableName); return userDbTable; } char *sessionDbTable() /* Return the name of the sessionDb table. */ { static char *sessionDbTable = NULL; if (sessionDbTable == NULL)