src/hg/lib/hdb.c 1.430
1.430 2010/05/20 16:18:45 kent
Making findTdbForTable use hTrackForTable before it searches for track. Fixes missing all_mrna table in table browser correlate page.
Index: src/hg/lib/hdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hdb.c,v
retrieving revision 1.429
retrieving revision 1.430
diff -b -B -U 4 -r1.429 -r1.430
--- src/hg/lib/hdb.c 18 May 2010 22:36:36 -0000 1.429
+++ src/hg/lib/hdb.c 20 May 2010 16:18:45 -0000 1.430
@@ -4725,9 +4725,14 @@
if (ct != NULL)
tdb = ct->tdb;
}
else
- tdb = tdbFindOrCreate(db,parent,table);
+ {
+ char *track = hGetTrackForTable(db, table);
+ if (track == NULL)
+ return NULL;
+ tdb = tdbFindOrCreate(db,parent,track);
+ }
return tdb;
}
char *findTypeForTable(char *db,struct trackDb *parent,char *table, struct customTrack *(*ctLookupName)(char *table))