a3388dd3d91dc0e5023cfbda12e249d419f3e960
braney
  Sun Nov 22 07:10:28 2020 -0800
add ability to have a default cart other than the empty one.

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)