src/hg/hgTracks/bedGraph.c 1.21

1.21 2010/03/25 17:46:01 angie
Use hAllocConnTrack instead of sqlConnect or hAllocConn to support profiles in hg.conf.
Index: src/hg/hgTracks/bedGraph.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/bedGraph.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 4 -r1.20 -r1.21
--- src/hg/hgTracks/bedGraph.c	4 Feb 2009 23:57:03 -0000	1.20
+++ src/hg/hgTracks/bedGraph.c	25 Mar 2010 17:46:01 -0000	1.21
@@ -72,9 +72,9 @@
 else 
 #endif /* GBROWSE */
     {
     tableName = tg->mapName;
-    conn = hAllocConn(database);
+    conn = hAllocConnTrack(database, tg->tdb);
     }
 
 sr = hRangeQuery(conn, tableName, chromName, winStart, winEnd, NULL,
 	&rowOffset);