package journal.action; import journal.reader.DataJournalEntry; public class EmptyFilesizeFinder extends BaseAction { @Override public void putValue(DataJournalEntry data) throws Exception { if( data.getTableName().equals("db.rev") || data.getTableName().equals("db.revhx")) { Short action = (Short) data.getValue("action"); if (action != 2 && action != 7) { // delete or movefrom Long filesize = (Long) data.getValue("size"); if( filesize == -1 ) { out.println(data.toJournalString()); } } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 24773 | Norman Morse |
Moving journalReader from sven's private branch to perforce_software. This is because journalReader is used in the perfsplit test harness, and should be updated over time. Merging //guest/sven_erik_knop/java/JournalReader/... to //guest/perforce_software/journalReader/... |
||
//guest/sven_erik_knop/java/JournalReader/src/journal/action/EmptyFilesizeFinder.java | |||||
#2 | 8296 | Sven Erik Knop |
Clean-up: instead of casting in every action, cast only once in the dispatcher. Should make code saner and safer. No functional change. |
||
#1 | 7936 | Sven Erik Knop | Attempt at an EmptyFileSizeFinder Action. |