0267a249f3e608441617c42ae9f79083b3cac486 braney Tue Aug 23 12:12:51 2011 -0700 some changes from code review with Hiram #5049 diff --git src/hg/lib/hubConnect.c src/hg/lib/hubConnect.c index ee0de34..790d814 100644 --- src/hg/lib/hubConnect.c +++ src/hg/lib/hubConnect.c @@ -428,30 +428,33 @@ else { warn("requested hub at %s does not have data for %s\n", url, database); return 0; } trackHubClose(&tHub); char *errorMessage = NULL; id = getHubId(url, &errorMessage); return id; } static unsigned getAndSetHubStatus(char *database, struct cart *cart, char *url, boolean set, boolean unlisted) +/* look in the hubStatus table for this url, add it if it isn't in there + * Set the cart variable to turn the hub on if set == TRUE. + * Return id from that status table*/ { char *errorMessage = NULL; unsigned id; if ((id = getHubId(url, &errorMessage)) == 0) { if ((id = fetchHub(database, url, unlisted)) == 0) return id; } else if (!hubHasDatabase(id, database)) { warn("requested hub at %s does not have data for %s\n", url, database); return id; }