src/hg/lib/customFactory.c 1.100
1.100 2009/08/13 19:57:52 galt
temporary workaround to help the keep-alive during transition to new variable name bigDataUrl
Index: src/hg/lib/customFactory.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/customFactory.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -b -B -U 4 -r1.99 -r1.100
--- src/hg/lib/customFactory.c 12 Aug 2009 21:20:26 -0000 1.99
+++ src/hg/lib/customFactory.c 13 Aug 2009 19:57:52 -0000 1.100
@@ -2170,11 +2170,33 @@
hashElFreeList(&fileSettings);
return isLive;
}
+// TODO: remove touchOldUdcSettings very soon
+// after the rollout of the next code, i.e. on 2009-08-24.
+static void touchOldUdcSettings(struct trackDb *tdb)
+/* Touch existing local udcCache bitmap and sparse files. */
+{
+char *url = trackDbSetting(tdb, "dataUrl");
+if (url)
+ {
+ struct slName *el, *list = udcFileCacheFiles(url, udcDefaultDir());
+ for (el = list; el; el = el->next)
+ {
+ if (fileExists(el->name))
+ {
+ readAndIgnore(el->name);
+ verbose(4, "setting dataUrl: %s\n", el->name);
+ }
+ }
+ slFreeList(&list);
+ }
+}
+
static void touchUdcSettings(struct trackDb *tdb)
/* Touch existing local udcCache bitmap and sparse files. */
{
+touchOldUdcSettings(tdb); // remove this line after 2009-08-24, see above.
char *url = trackDbSetting(tdb, "bigDataUrl");
if (url)
{
struct slName *el, *list = udcFileCacheFiles(url, udcDefaultDir());