mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-21 22:52:22 +00:00
User input viewer bug
PAMGuard was marking multiline comments as changed and then relogging them. Led to exponential increase in database size!
This commit is contained in:
parent
03483ded18
commit
02ad66db3b
@ -136,7 +136,9 @@ public class UserInputLogger extends SQLLogging {
|
||||
if (dataUnit != null && dataUnit.getDatabaseIndex() != databaseIndex) {
|
||||
dataUnit.setDatabaseIndex(databaseIndex);
|
||||
dataUnit.setUserString(dataUnit.getUserString() + " " + txt);
|
||||
getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
|
||||
// don't call this next line, it causes the unit to get relogged.
|
||||
// getPamDataBlock().updatePamData(dataUnit, timeMilliseconds);
|
||||
dataUnit.clearUpdateCount();
|
||||
}
|
||||
else {
|
||||
dataUnit = new UserInputDataUnit(timeMilliseconds, txt);
|
||||
|
Loading…
Reference in New Issue
Block a user