src/hg/hgCustom/hgCustom.c 1.140
1.140 2010/03/16 06:55:49 angie
Use knetUdc (put udc underneath samtools' network code) if KNETFILE_HOOKS.
Index: src/hg/hgCustom/hgCustom.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgCustom/hgCustom.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -b -B -U 4 -r1.139 -r1.140
--- src/hg/hgCustom/hgCustom.c 4 Mar 2010 23:06:07 -0000 1.139
+++ src/hg/hgCustom/hgCustom.c 16 Mar 2010 06:55:49 -0000 1.140
@@ -13,8 +13,12 @@
#include "customTrack.h"
#include "customFactory.h"
#include "portable.h"
#include "errCatch.h"
+#if (defined USE_BAM && defined KNETFILE_HOOKS)
+#include "knetUdc.h"
+#include "udc.h"
+#endif//def USE_BAM && KNETFILE_HOOKS
static char const rcsid[] = "$Id$";
void usage()
@@ -1003,8 +1007,14 @@
setUdcCacheDir();
customFactoryEnableExtraChecking(TRUE);
+#if (defined USE_BAM && defined KNETFILE_HOOKS)
+knetUdcInstall();
+if (udcCacheTimeout() < 300)
+ udcSetCacheTimeout(300);
+#endif//def USE_BAM && KNETFILE_HOOKS
+
if (sameString(initialDb, "0"))
{
/* when an organism is selected from the custom track management page,
* set the database to be the default only if it has custom tracks.