749fbba847b9900a488e1ae88dc46c3d7fbedc15 chmalee Fri Oct 21 15:55:28 2022 -0700 Fix wrong short circuit check in determining whether a bigBed has a search index or not, refs #30156 diff --git src/hg/lib/bigBedFind.c src/hg/lib/bigBedFind.c index edafd0e..31bf494 100644 --- src/hg/lib/bigBedFind.c +++ src/hg/lib/bigBedFind.c @@ -293,32 +293,32 @@ /* Check if a single tdb is searchable */ { if (tdb->subtracks) { boolean searchable = FALSE; struct trackDb *sub; for (sub = tdb->subtracks; sub != NULL; sub = sub->next) searchable |= isTdbSearchable(sub); return searchable; } if (startsWith("bigWig", tdb->type) || !startsWith("big", tdb->type)) return FALSE; char *indexField = NULL; indexField = trackDbSetting(tdb, "searchIndex"); -if (!indexField) - return FALSE; +if (indexField) + return TRUE; // If !indexField but we do have an index on the bigBed use that char *fileName = trackDbSetting(tdb, "bigDataUrl"); if (!fileName) return FALSE; // we fail silently if bigBed can't be opened. struct bbiFile *bbi = NULL; struct errCatch *errCatch = errCatchNew(); if (errCatchStart(errCatch)) { bbi = bigBedFileOpen(fileName); } errCatchEnd(errCatch); if (errCatch->gotError)