src/hg/hgTracks/bigWigTrack.c 1.9

1.9 2010/03/25 17:46:01 angie
Use hAllocConnTrack instead of sqlConnect or hAllocConn to support profiles in hg.conf.
Index: src/hg/hgTracks/bigWigTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/bigWigTrack.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/hg/hgTracks/bigWigTrack.c	1 Dec 2009 05:49:35 -0000	1.8
+++ src/hg/hgTracks/bigWigTrack.c	25 Mar 2010 17:46:01 -0000	1.9
@@ -54,9 +54,9 @@
 {
 if (tg->bbiFile == NULL)
     {
     /* Figure out bigWig file name. */
-    struct sqlConnection *conn = hAllocConn(database);
+    struct sqlConnection *conn = hAllocConnTrack(database, tg->tdb);
     char *fileName = bbiNameFromTable(conn, tg->mapName);
     tg->bbiFile = bigWigFileOpen(fileName);
     hFreeConn(&conn);
     }