Skip to content

Commit

Permalink
Follow up to GEOS-5402, make sure we still only consider valid index …
Browse files Browse the repository at this point in the history
…tables when picking a random one
  • Loading branch information
aaime committed May 23, 2016
1 parent c423f2c commit 2e54bd5
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -207,7 +207,13 @@ public GTDataStoreGranuleCatalog(final Properties params, final boolean create,
}

if (this.typeNames.size() > 0) {
extractBasicProperties(typeNames.iterator().next());
// pick the first valid schema found
for (String tn : typeNames) {
if(isValidMosaicSchema(tn)) {
extractBasicProperties(tn);
break;
}
}
} else if (typeName != null && typeName.contains(",")) {
String[] typeNames = typeName.split(",");
for (String tn : typeNames) {
Expand Down

0 comments on commit 2e54bd5

Please sign in to comment.