bf0f2a64192b5c80db6ff314a3fa66266976ea8f braney Tue Jun 11 12:57:07 2019 -0700 ongoing work on trackDb caching diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index a95c1eb..4ead4b5 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -697,22 +697,28 @@ * or a tab-separated or tagStorm file with a foreign key specified by the "meta" tag. */ char *trackDbViewSetting(struct trackDb *tdb, char *name); /* Return view setting from tdb, but *not* any of it's parents. */ struct trackDb *lmCloneTdb(struct lm *lm, struct trackDb *tdb, struct trackDb *parent, struct hash *superHash); /* clone a single tdb structure. Will clone its children if it has any */ struct trackDb *lmCloneTdbList(struct lm *lm, struct trackDb *list, struct trackDb *parent, struct hash *superHash); /* clone a list of tdb structures. */ struct trackDb *lmCloneSuper(struct lm *lm, struct trackDb *tdb, struct hash *superHash); /* clone a super track tdb structure. */ +void trackDbHubCloneTdbListToSharedMem(char *hubUrl, char *genome, struct trackDb *list, unsigned long size); +/* For this hub, Allocate shared memory and clone trackDb list into it. */ + void trackDbCloneTdbListToSharedMem(char *db, struct trackDb *list, unsigned long size); -/* Allocate shared memory and clone trackDb list into it. */ +/* For this native db, allocate shared memory and clone trackDb list into it. */ struct trackDb *trackDbCache(char *db); /* Check to see if this db has a cached trackDb. */ + +struct trackDb *trackDbHubCache(char *hubUrl, char *genome); +/* Check to see if this hub has a cached trackDb. */ #endif /* TRACKDB_H */