ASM #16942 - GFE: VTEC Active Tables not getting purged

Change-Id: Ib71d667d8f59ab1fa3c669653d2bc8636bd7901c

Former-commit-id: 14bb4d4d59 [formerly 6fbdb136e3968e197c38907a20ba898d9532e39e]
Former-commit-id: 48dcae9064
This commit is contained in:
Rici.Yu 2015-02-05 15:22:49 -05:00
parent 3465706d3b
commit 8a5e418304

View file

@ -91,6 +91,11 @@ import com.raytheon.uf.edex.database.query.DatabaseQuery;
* Jun 17, 2014 3296 randerso Cached PythonScript. Moved active table
* backup and purging to a separate thread.
* Added performance logging
* Feb 05, 2015 16942 ryu Fix update of records for sites other than
* the home site and its neighbors.
* Pass issuance site id to getActiveTable()
* in updateActiveTable() so records will
* be updated correctly.
*
* </pre>
*
@ -285,11 +290,13 @@ public class ActiveTable {
mode = ActiveTableMode.OPERATIONAL;
}
String issueSiteId = newRecords.get(0).getOfficeid();
IPerformanceStatusHandler perfStat = PerformanceStatus
.getHandler("ActiveTable");
ITimer timer = TimeUtil.getTimer();
timer.start();
List<ActiveTableRecord> activeTable = getActiveTable(siteId, mode);
List<ActiveTableRecord> activeTable = getActiveTable(issueSiteId, mode);
timer.stop();
perfStat.logDuration("getActiveTable", timer.getElapsedTime());