4163 fix bug using wrong cache

This commit is contained in:
William Schaefer 2018-08-28 12:52:42 -04:00
parent 056f4e9534
commit 2f57b43676

View File

@ -691,7 +691,7 @@ abstract class AbstractSqlEamDb implements EamDb {
throw new EamDbException("Correlation case is null"); throw new EamDbException("Correlation case is null");
} }
try { try {
return dataSourceCacheByDeviceId.get(getDataSourceByIdCacheKey(correlationCase.getID(), dataSourceId), () -> getDataSourceByIdFromCr(correlationCase, dataSourceId)); return dataSourceCacheById.get(getDataSourceByIdCacheKey(correlationCase.getID(), dataSourceId), () -> getDataSourceByIdFromCr(correlationCase, dataSourceId));
} catch (ExecutionException ex) { } catch (ExecutionException ex) {
throw new EamDbException("Error getting data source from central repository", ex); throw new EamDbException("Error getting data source from central repository", ex);
} }