b85df0a600a946623bbe3e5b41e1dc6785e2f59c
braney
  Thu Apr 15 17:20:43 2021 -0700
if a track hub specifies a database that's not native, look for in among
the attached hubs, and if it's not there, look on genark

diff --git src/hg/inc/trackHub.h src/hg/inc/trackHub.h
index 316a945..73ff133 100644
--- src/hg/inc/trackHub.h
+++ src/hg/inc/trackHub.h
@@ -20,30 +20,32 @@
 
 #ifndef TRACKHUB_H
 #define TRACKHUB_H
 
 #include "dystring.h"
 
 #define MAX_HUB_TRACKDB_FILE_SIZE    64*1024*1024
 #define MAX_HUB_GROUP_FILE_SIZE     16*1024*1024
 #define MAX_HUB_GENOME_FILE_SIZE    64*1024*1024
 
 struct trackHub 
 /* A track hub. */
     {
     struct trackHub *next;
 
+    struct hubConnectStatus *hubStatus;  /* Pointer to our hubConnectStatus structure, if any. */
+
     char *url;		/* URL of hub.ra file. */
     struct trackHubGenome *genomeList;	/* List of associated genomes. */
     struct hash *genomeHash;	/* Hash of genomeList keyed by genome name. */
     struct hash *settings;	/* Settings from hub.ra file. */
 
     /* Required settings picked out for convenience. All allocated in settings hash */
     char *shortLabel;	/* Hub short label. Not allocated here. */
     char *longLabel;	/* Hub long label. Not allocated here. */
     char *genomesFile;	/* URL to genome.ra file. Not allocated here. */
     char *defaultDb;    /* the default database  */
 
     char *name;	/* Symbolic name of hub in cart, etc.  From trackHubOpen hubName parameter. */
 
     char *descriptionUrl;  /* URL to description file */
     char *email;           /* email address of contact person */