56e0ec54f202496d46891c2760b01c556b4f75c9 chmalee Mon Nov 10 12:07:24 2025 -0800 We added super tracks to the trackDb list when hashing up all the tracks and groups, so don't call hubCollectTracks again when finding searchable tracks because the track db list got all rearranged and it now points to a stale copy, refs #36640 diff --git src/hg/lib/cartTrackDb.c src/hg/lib/cartTrackDb.c index c474978bc15..eda760e5099 100644 --- src/hg/lib/cartTrackDb.c +++ src/hg/lib/cartTrackDb.c @@ -7,36 +7,36 @@ #include "hash.h" #include "hCommon.h" #include "hdb.h" #include "hgConfig.h" #include "hgMaf.h" #include "hubConnect.h" #include "joiner.h" #include "trackHub.h" #include "wikiTrack.h" /* Static globals */ static boolean useAC = FALSE; static struct slRef *accessControlTrackRefList = NULL; /* Caches used for searching */ -struct trackDb *hgFindTdbList = NULL; struct grp *hgFindGrpList = NULL; struct hash *hgFindGroupHash = NULL; /* Also used by hgFind and defined there */ extern struct hash *hgFindTrackHash; +extern struct trackDb *hgFindTdbList; static struct trackDb *getFullTrackList(struct cart *cart, char *db, struct grp **pHubGroups) { struct trackDb *list = hTrackDb(db); /* add wikiTrack if enabled */ if (wikiTrackEnabled(db, NULL)) slAddHead(&list, wikiTrackDb()); slSort(&list, trackDbCmp); // Add hub tracks at head of list struct trackDb *hubTdbList = hubCollectTracks(db, pHubGroups); list = slCat(list, hubTdbList); /* exclude any track with a 'tableBrowser off' setting */